Skip to content

Commit

Permalink
bleh
Browse files Browse the repository at this point in the history
  • Loading branch information
femalemonkeyman committed Jul 11, 2023
1 parent 92f0ba6 commit 0b0fe10
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 6 additions & 3 deletions lib/media/media_anime.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ class AniViewerState extends State<AniViewer> {
);
Future.microtask(
() async {
await WakelockPlus.enable();

if (!Platform.isLinux) {
await WakelockPlus.enable();
}
await play();
},
);
Expand Down Expand Up @@ -95,7 +96,9 @@ class AniViewerState extends State<AniViewer> {
SystemChrome.setPreferredOrientations([]);
Future.microtask(
() async {
await WakelockPlus.disable();
if (!Platform.isLinux) {
await WakelockPlus.disable();
}
try {
Directory(
p.join((await getTemporaryDirectory()).path, 'anisubs'),
Expand Down
5 changes: 4 additions & 1 deletion lib/media/providers/anime/kaido.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ Future<Source> zoroInfo(final id) async {
sources['sourcesBackup'] =
jsonDecode(decrypt(sources['sourcesBackup'], key));
}
(sources['tracks'] as List).removeLast();
print((sources['tracks'] as List));
if ((sources['tracks'] as List).last['kind'] != 'captions') {
(sources['tracks'] as List).removeLast();
}
return Source(
qualities: {
'default': sources['sources'][0]['file'],
Expand Down

0 comments on commit 0b0fe10

Please sign in to comment.