1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-07 19:52:40 +01:00

Merge pull request #10342 from muphil/patch-1

[xiami] bug fix for extractor xiami.py
This commit is contained in:
Yen Chi Hsuan 2016-08-14 02:30:50 +08:00 committed by GitHub
commit 409760a932

View File

@ -13,6 +13,7 @@ def _download_webpage(self, *args, **kwargs):
webpage = super(XiamiBaseIE, self)._download_webpage(*args, **kwargs)
if '>Xiami is currently not available in your country.<' in webpage:
self.raise_geo_restricted('Xiami is currently not available in your country')
return webpage
def _extract_track(self, track, track_id=None):
title = track['title']