From cacc8d104ab8d34179fc05c5064cf2e16c88c50a Mon Sep 17 00:00:00 2001 From: Tithen-Firion Date: Thu, 27 Apr 2017 18:08:24 +0200 Subject: [PATCH 1/3] [cbslocal] update test cases --- youtube_dl/extractor/cbslocal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/cbslocal.py b/youtube_dl/extractor/cbslocal.py index 8d5f11dd1..9a3db9f21 100644 --- a/youtube_dl/extractor/cbslocal.py +++ b/youtube_dl/extractor/cbslocal.py @@ -60,8 +60,8 @@ class CBSLocalIE(AnvatoIE): 'title': 'A Very Blue Anniversary', 'description': 'CBS2’s Cindy Hsu has more.', 'thumbnail': 're:^https?://.*', - 'timestamp': 1479962220, - 'upload_date': '20161124', + 'timestamp': 1493292540, + 'upload_date': '20170427', 'uploader': 'CBS', 'subtitles': { 'en': 'mincount:5', From 2919ca9afe13ddab6e2729f277f4e29ea23cea11 Mon Sep 17 00:00:00 2001 From: Tithen-Firion Date: Thu, 27 Apr 2017 21:00:29 +0200 Subject: [PATCH 2/3] [cbslocal] update test again Timestamp changes for this video. It even changed today after my previous fix. --- youtube_dl/extractor/cbslocal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/cbslocal.py b/youtube_dl/extractor/cbslocal.py index 9a3db9f21..7b972ef68 100644 --- a/youtube_dl/extractor/cbslocal.py +++ b/youtube_dl/extractor/cbslocal.py @@ -60,8 +60,8 @@ class CBSLocalIE(AnvatoIE): 'title': 'A Very Blue Anniversary', 'description': 'CBS2’s Cindy Hsu has more.', 'thumbnail': 're:^https?://.*', - 'timestamp': 1493292540, - 'upload_date': '20170427', + 'timestamp': int, + 'upload_date': 're:^\d{8}$', 'uploader': 'CBS', 'subtitles': { 'en': 'mincount:5', From 17d03fbebe221bd60e4c535771b842b1dd7d7c4b Mon Sep 17 00:00:00 2001 From: Tithen-Firion Date: Thu, 27 Apr 2017 23:24:32 +0200 Subject: [PATCH 3/3] [cbslocal] fix regex string --- youtube_dl/extractor/cbslocal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/cbslocal.py b/youtube_dl/extractor/cbslocal.py index 7b972ef68..7d78e3aae 100644 --- a/youtube_dl/extractor/cbslocal.py +++ b/youtube_dl/extractor/cbslocal.py @@ -61,7 +61,7 @@ class CBSLocalIE(AnvatoIE): 'description': 'CBS2’s Cindy Hsu has more.', 'thumbnail': 're:^https?://.*', 'timestamp': int, - 'upload_date': 're:^\d{8}$', + 'upload_date': r're:^\d{8}$', 'uploader': 'CBS', 'subtitles': { 'en': 'mincount:5',