Skip to content

Commit

Permalink
fix offline mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kanishka-linux committed Jul 2, 2018
1 parent e37e7ff commit 6fd55c0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions kawaii_player/kawaii_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -9953,15 +9953,14 @@ def epn_return(self, row, mode=None):
refererNeeded = False
epn = arr[0]
if 'youtube.com' in finalUrl or finalUrl.startswith('ytdl:'):
if self.gapless_network_stream:
if self.gapless_network_stream and mode != 'offline':
yt_mode = 'yt_prefetch_a'
elif self.music_playlist:
yt_mode = 'yt_music'
elif mode:
yt_mode = mode
else:
if self.music_playlist:
yt_mode = 'yt_music'
elif mode:
yt_mode = mode
else:
yt_mode = 'yt'
yt_mode = 'yt'
finalUrl = self.yt.get_yt_url(finalUrl, self.quality_val,
self.ytdl_path, logger,
mode=yt_mode)
Expand Down

0 comments on commit 6fd55c0

Please sign in to comment.