4 Commits 6cf1352a11 ... b9366bab3a

Author SHA1 Message Date
  Grace Past b9366bab3a Merging from 2017.9 7 years ago
  Grace Past c8fe343936 Das new ChangeLog 7 years ago
  Grace Past 5d6aa44953 Trying to fix for push... 7 years ago
  Grace Past 292a3b0326 INIT for repos . 7 years ago
9 changed files with 41 additions and 4 deletions
  1. 4 1
      Patches/Files/ChangeLog
  2. 3 0
      Patches/Perm/.35
  3. 3 0
      Patches/Perm/.36
  4. 3 0
      Patches/Perm/.37
  5. 9 2
      Patches/Perm/13
  6. 3 0
      Patches/Perm/g.35
  7. 3 0
      Patches/Perm/g.36
  8. 3 0
      Patches/Perm/g.37
  9. 10 1
      expected_output.txt

+ 4 - 1
Patches/Files/ChangeLog

@@ -1,3 +1,6 @@
+2017.9.0:
+*Updated to latest youtube-dl release
+
 2017.8.0:
 2017.8.0:
 *Updated bade youtube-dl release
 *Updated bade youtube-dl release
 
 
@@ -46,4 +49,4 @@
 *Fix directory paths& symlinks in Deb package
 *Fix directory paths& symlinks in Deb package
 
 
 2017.6.0:
 2017.6.0:
-*First Release!
+*First Release!

+ 3 - 0
Patches/Perm/.35

@@ -0,0 +1,3 @@
+#youtube_dl/extractor/twitter.py: Replace the User Agent with Tor Browser's
+#ln=Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0
+Mozilla/5.0 (Android 6.0.1; Mobile; rv:54.0) Gecko/54.0 Firefox/54.0

+ 3 - 0
Patches/Perm/.36

@@ -0,0 +1,3 @@
+#youtube_dl/extractor/miaopai.py: Replace the User Agent with Tor Browser's
+#ln=Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0
+self._USER_AGENT_IPAD

+ 3 - 0
Patches/Perm/.37

@@ -0,0 +1,3 @@
+#youtube_dl/extractor/miaopai.py: Replace the User Agent with Tor Browser's
+#ln=Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0
+self._USER_AGENT_IPAD

+ 9 - 2
Patches/Perm/13

@@ -2,8 +2,15 @@
 #ln=
 #ln=
 
 
 youtube-dl: youtube_dl/*.py youtube_dl/*/*.py
 youtube-dl: youtube_dl/*.py youtube_dl/*/*.py
-	zip --quiet youtube-dl youtube_dl/*.py youtube_dl/*/*.py
-	zip --quiet --junk-paths youtube-dl youtube_dl/__main__.py
+	mkdir -p zip
+	for d in youtube_dl youtube_dl/downloader youtube_dl/extractor youtube_dl/postprocessor ; do \
+	  mkdir -p zip/$$d ;\
+	  cp -pPR $$d/*.py zip/$$d/ ;\
+	done
+	touch -t 200001010101 zip/youtube_dl/*.py zip/youtube_dl/*/*.py
+	mv zip/youtube_dl/__main__.py zip/
+	cd zip ; zip -q ../youtube-dl youtube_dl/*.py youtube_dl/*/*.py __main__.py
+	rm -rf zip
 	echo '#!$(PYTHON)' > youtube-dl
 	echo '#!$(PYTHON)' > youtube-dl
 	cat youtube-dl.zip >> youtube-dl
 	cat youtube-dl.zip >> youtube-dl
 	rm youtube-dl.zip
 	rm youtube-dl.zip

+ 3 - 0
Patches/Perm/g.35

@@ -0,0 +1,3 @@
+#youtube_dl/extractor/twitter.py: Replace the User Agent with Tor Browser's
+#ln=Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0
+Mozilla/5.0 (Android 6.0.1; Mobile; rv:54.0) Gecko/54.0 Firefox/54.0

+ 3 - 0
Patches/Perm/g.36

@@ -0,0 +1,3 @@
+#youtube_dl/extractor/miaopai.py: Replace the User Agent with Tor Browser's
+#ln=Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0
+self._USER_AGENT_IPAD

+ 3 - 0
Patches/Perm/g.37

@@ -0,0 +1,3 @@
+#youtube_dl/extractor/miaopai.py: Replace the User Agent with Tor Browser's
+#ln=Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0
+self._USER_AGENT_IPAD

+ 10 - 1
expected_output.txt

@@ -1,5 +1,14 @@
 
 
 
 
+./YOUTUBE_DL/EXTRACTOR/TWITTER.PY:
+0: 1
+
+
+./YOUTUBE_DL/EXTRACTOR/MIAOPAI.PY:
+0: 1
+1: 0
+
+
 ./YOUTUBE_DL/EXTRACTOR/YOUTUBE.PY:
 ./YOUTUBE_DL/EXTRACTOR/YOUTUBE.PY:
 0: 1
 0: 1
 1: 1
 1: 1
@@ -20,7 +29,7 @@
 
 
 
 
 ./MAKEFILE:
 ./MAKEFILE:
-0: 1
+0: 0
 1: 1
 1: 1
 2: 1
 2: 1
 3: 1
 3: 1