Skip to content

Commit

Permalink
Merge pull request #718 from anxdpanic/pr
Browse files Browse the repository at this point in the history
6.5.3~alpha1
  • Loading branch information
anxdpanic authored Jan 23, 2020
2 parents 8179480 + bda2dfe commit dda0621
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.youtube" name="YouTube" version="6.5.2" provider-name="anxdpanic, bromix">
<addon id="plugin.video.youtube" name="YouTube" version="6.5.3~alpha1" provider-name="anxdpanic, bromix">
<requires>
<import addon="xbmc.python" version="2.20.0"/>
<import addon="script.module.six" version="1.11.0"/>
Expand All @@ -13,6 +13,7 @@
<extension point="xbmc.python.module" library="resources/lib/"/>
<extension point="xbmc.addon.metadata">
<news>
[fix] playback for some videos (ie. music videos)
[fix] playback of some videos with no adaptive video streams
[fix] don't update watch history when incognito/screensaver/live |contrib: regseb|
[lang] el_gr strings |contrib: twilight0|
Expand Down
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
6.5.3
[fix] playback for some videos (ie. music videos)
[fix] playback of some videos with no adaptive video streams
[fix] don't update watch history when incognito/screensaver/live |contrib: regseb|
[lang] el_gr strings |contrib: twilight0|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,13 @@ def _load_javascript(self, javascript):
@staticmethod
def _find_signature_function_name(javascript):
# match_patterns source is youtube-dl
# https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L1313
# https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L1344
# LICENSE: The Unlicense

match_patterns = [
r'\b[cs]\s*&&\s*[adf]\.set\([^,]+\s*,\s*encodeURIComponent\s*\(\s*(?P<name>[a-zA-Z0-9$]+)\(',
r'\b[a-zA-Z0-9]+\s*&&\s*[a-zA-Z0-9]+\.set\([^,]+\s*,\s*encodeURIComponent\s*\(\s*(?P<name>[a-zA-Z0-9$]+)\(',
r'\b(?P<name>[a-zA-Z0-9$]{2})\s*=\s*function\(\s*a\s*\)\s*{\s*a\s*=\s*a\.split\(\s*""\s*\)',
r'(?P<name>[a-zA-Z0-9$]+)\s*=\s*function\(\s*a\s*\)\s*{\s*a\s*=\s*a\.split\(\s*""\s*\)',
r'(["\'])signature\1\s*,\s*(?P<name>[a-zA-Z0-9$]+)\(',
r'\.sig\|\|(?P<name>[a-zA-Z0-9$]+)\(',
Expand Down

0 comments on commit dda0621

Please sign in to comment.