mirror of
https://gitlab.com/foxixus/neomovies_mobile.git
synced 2025-10-28 09:18:49 +05:00
Fix API auth flow and poster URLs
- Fix authorization issues by improving error handling for unverified accounts - Enable auto-login after successful email verification - Fix poster fetching to use NeoMovies API instead of TMDB directly - Add missing video player models (VideoQuality, AudioTrack, Subtitle, PlayerSettings) - Add video_player and chewie dependencies for native video playback - Update Movie model to use API images endpoint for better CDN control Resolves authentication and image loading issues.
This commit is contained in:
34
lib/data/models/player/audio_track.dart
Normal file
34
lib/data/models/player/audio_track.dart
Normal file
@@ -0,0 +1,34 @@
|
||||
class AudioTrack {
|
||||
final String name;
|
||||
final String language;
|
||||
final String url;
|
||||
final bool isDefault;
|
||||
|
||||
AudioTrack({
|
||||
required this.name,
|
||||
required this.language,
|
||||
required this.url,
|
||||
this.isDefault = false,
|
||||
});
|
||||
|
||||
factory AudioTrack.fromJson(Map<String, dynamic> json) {
|
||||
return AudioTrack(
|
||||
name: json['name'] ?? '',
|
||||
language: json['language'] ?? '',
|
||||
url: json['url'] ?? '',
|
||||
isDefault: json['isDefault'] ?? false,
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
'name': name,
|
||||
'language': language,
|
||||
'url': url,
|
||||
'isDefault': isDefault,
|
||||
};
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() => name;
|
||||
}
|
||||
Reference in New Issue
Block a user