mirror of
https://gitlab.com/foxixus/neomovies_mobile.git
synced 2025-10-27 17:58:50 +05:00
- 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.
34 lines
673 B
Dart
34 lines
673 B
Dart
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;
|
|
} |