From c945a12e3946efc19a47bbaacbc158e64ee46eda Mon Sep 17 00:00:00 2001 From: Abhishek Kedia Date: Sun, 20 Dec 2015 22:15:20 +0100 Subject: [PATCH] add one more test. Actually its downloading correctly `python test/test_download.py TestDownload.test_GenVideos` caps the download at 10kB --- kMjlhMWE5OT.unknown_video | Bin 10241 -> 0 bytes youtube_dl/extractor/genvideos.py | 11 +++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) delete mode 100644 kMjlhMWE5OT.unknown_video diff --git a/kMjlhMWE5OT.unknown_video b/kMjlhMWE5OT.unknown_video deleted file mode 100644 index 9cc4f399b5a1f1d425c683e8f353424f20a7bda7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10241 zcmZwL37pr{{y*^diDXI?!k{$Ntq_Jn+NEWr5=u#!78*6}#Y9?EnkY?Lgb3q-fKCg2=pXp9S9C!WDf`R!1>zy6G@`en^ zKk$96b0_8x7%*H@zx?5SdhP%0{T?50+%KX`muTN1D^l$L-+z7mx4&rqAAfK5Up@b? z?+(&fC2v5lA^Sh9R4zK~+gGQ`zNok(cj(~UzS^!H+V?;qN9^zLevgfn{qe6Q+IKi= zf7^fi`X7t`U&WLeZG!R#M%C!uYv}%kPwd@q$k6{kPqN9Q4}8CWu8P|?<@d_V^ghufe_d_u2oo|MSC!4enR{!1oomUo>QBkAA*? zV#v@T2Ttigd&IrD!+U1?e*f3M&v~Gs%xK$g|7!lX{~ot*pTC`9))wi) zSE}sW8pqz?&&_2<-~II~7eyTLSd{r88g+Sbbc%!fyxVBB-beQsI#`%HD#Wp$e-UNx zsHE+uYcG+-FT?2IT|2M1GjE?XiF$)poStcxg@!MQl3a?h|W;?S}*XAtxG zDk8%L$+#3XWT+uyQ$%@tDt{jKQ+^TKBP!Iw*a{;lVYg#EiEhkd0jphz#F@D86|GUx z8i!Y=9oi1pcDS}9j^hdnSb}vcS+|lkDp{kFnk&7>R{n^nd;)T*d^_^3yb?7Wc_iA8 zbiaQ*={%2D+w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sd%?s=gwdE8G9q;)@KlE&Q)`dn&dKvO_6$5p(8Ttxh7Jt zvNUHTCG3vWJDYqK@J*!a59K08Gn);OZm3K<3RxYgkA3$!jZSFmQ_R*#dG1P{`SPwH zk0RurC-)m`<6Li)%Z>N4lJ(eIUwi9oOy8-KI;`v$%#atYB}Xo9d(OCVg*O!mda+S0sn= zcwgN75}%>=oBxPZAfEzfQedA2_F3=|zeO71eK0~TBa9s}mX+v#%L%CGmIx?mOjB#TYu_n^k#PPJG2kzb21(fhfq}z?X-Fe>Ll^MK=%*V-W zTo&F<dK45#K!YbHPq4vUJR`ExqN#`;c_iK`8c#^#DEQ7l4?9CM3j&#={ zG{MixyKbR~w<1mUj+@*VbxdA}Jx|^nY04?I<5pxp<=04eyJvUjGKW_vjpTQ#X{xrV z<9G~pO!g7%YAcsnLi`le;&^4{=4xk-~V-_2Qp~M7_9w(?B>*G5Yu@-(u0TLjy!0M2aDMh z>7gogq>$B-9=5-S?eF2{jHHC!k>+M&&vWH9S6+`~(Vf|Bi1cV>>NALilty~2Cb<-_ z1U1Z4!#p+28_PIOSS1tE;CTmOJ77xUvVRou$L8UD2=qz8LjmGSZThM WYFhbTq?apT%*&TCl1FgHFaJL>3Oz{x diff --git a/youtube_dl/extractor/genvideos.py b/youtube_dl/extractor/genvideos.py index 74a2e973a..7498e39e7 100644 --- a/youtube_dl/extractor/genvideos.py +++ b/youtube_dl/extractor/genvideos.py @@ -15,7 +15,7 @@ class GenVideosIE(InfoExtractor): # For example # * http://genvideos.com/watch_kMjlhMWE5OT.html#video=tBa-Q-WkbPqwzs34b7ArqU7VomQMb2n-RAlARWKWKTI # * http://genvideos.org/watch_kMjlhMWE5OT.html#video=tBa-Q-WkbPqwzs34b7ArqU7VomQMb2n-RAlARWKWKTI - _TEST = { + _TESTS = [{ 'url': 'http://genvideos.org/watch?v=kMjlhMWE5OT', #'md5': 'TODO: md5 sum of the first 10241 bytes of the video file (use --test)', 'info_dict': { @@ -29,7 +29,14 @@ class GenVideosIE(InfoExtractor): # * A regular expression; start the string with re: # * Any Python type (for example int or float) } - } + }, { + 'url': 'https://genvideos.org/watch?v=Pitch_Perfect_2_2015#video=tBa-Q-WkbPqwzs34b7ArqU7VomQMb2n-RAlARWKWKTI', + 'info_dict':{ + 'id': 'Pitch_Perfect_2_2015', + 'ext': 'mp4', + 'title': 'Pitch Perfect 2 (2015) - HD 1080p' + } + }] def _real_extract(self, url): video_id = self._match_id(url)