From 4d23549e3161dbaaf39a4d697ba29501ce7b1958 Mon Sep 17 00:00:00 2001 From: anxdpanic Date: Tue, 28 Jul 2020 08:18:38 -0400 Subject: [PATCH 1/3] Update changes --- addon.xml | 1 + changelog.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/addon.xml b/addon.xml index 1875c0e6..d707825b 100644 --- a/addon.xml +++ b/addon.xml @@ -13,6 +13,7 @@ +[fix] notifications for some languages |contrib: Mutronics| [fix] fix rating videos causing and error even though it succeeded [upd] cache javascript player url for 4 hours, reduces http requests per play by 1 [upd] use new settings format on Kodi 19 diff --git a/changelog.txt b/changelog.txt index 9ecb4204..86974c4b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,5 @@ 6.8.3 +[fix] notifications for some languages |contrib: Mutronics| [fix] fix rating videos causing and error even though it succeeded [upd] cache javascript player url for4 hours, reduces http requests per play by 1 [upd] use new settings format on Kodi 19 From 207aa400654ea95ead2012f734dd74e2467aec50 Mon Sep 17 00:00:00 2001 From: anxdpanic Date: Tue, 28 Jul 2020 08:18:57 -0400 Subject: [PATCH 2/3] fix playback of some videos --- addon.xml | 1 + changelog.txt | 1 + resources/lib/youtube_plugin/youtube/helper/signature/cipher.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/addon.xml b/addon.xml index d707825b..94e01900 100644 --- a/addon.xml +++ b/addon.xml @@ -13,6 +13,7 @@ +[fix] playback of some videos [fix] notifications for some languages |contrib: Mutronics| [fix] fix rating videos causing and error even though it succeeded [upd] cache javascript player url for 4 hours, reduces http requests per play by 1 diff --git a/changelog.txt b/changelog.txt index 86974c4b..2f45cfbc 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,5 @@ 6.8.3 +[fix] playback of some videos [fix] notifications for some languages |contrib: Mutronics| [fix] fix rating videos causing and error even though it succeeded [upd] cache javascript player url for4 hours, reduces http requests per play by 1 diff --git a/resources/lib/youtube_plugin/youtube/helper/signature/cipher.py b/resources/lib/youtube_plugin/youtube/helper/signature/cipher.py index e4d5e848..1535cab2 100644 --- a/resources/lib/youtube_plugin/youtube/helper/signature/cipher.py +++ b/resources/lib/youtube_plugin/youtube/helper/signature/cipher.py @@ -135,7 +135,7 @@ def _find_signature_function_name(javascript): match_patterns = [ r'\b[cs]\s*&&\s*[adf]\.set\([^,]+\s*,\s*encodeURIComponent\s*\(\s*(?P[a-zA-Z0-9$]+)\(', r'\b[a-zA-Z0-9]+\s*&&\s*[a-zA-Z0-9]+\.set\([^,]+\s*,\s*encodeURIComponent\s*\(\s*(?P[a-zA-Z0-9$]+)\(', - r'\b(?P[a-zA-Z0-9$]{2})\s*=\s*function\(\s*a\s*\)\s*{\s*a\s*=\s*a\.split\(\s*""\s*\)', + r'(?:\b|[^a-zA-Z0-9$])(?P[a-zA-Z0-9$]{2})\s*=\s*function\(\s*a\s*\)\s*{\s*a\s*=\s*a\.split\(\s*""\s*\)', r'(?P[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[a-zA-Z0-9$]+)\(', r'\.sig\|\|(?P[a-zA-Z0-9$]+)\(', From b67628fb61ecad204dac753bef44fd312a7d9fb3 Mon Sep 17 00:00:00 2001 From: anxdpanic Date: Tue, 28 Jul 2020 08:19:25 -0400 Subject: [PATCH 3/3] 6.8.3 --- addon.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon.xml b/addon.xml index 94e01900..935a3d53 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - +