YouTube-Downloader icon indicating copy to clipboard operation
YouTube-Downloader copied to clipboard

rss feed has empty videoid in media:content url

Open tuxpeople opened this issue 4 years ago • 0 comments

Description

Script generates a rss feed. But videoid in media:content url is empty

Steps to Reproduce

I used your example, the user heisenewsticker ;-)

  1. wget http://localhost:8080/feed.php?user=heisenewsticker&format=140
  2. less feed.php?user=heisenewsticker&format=140

Expected behavior:

functional rss feed

Actual behavior:

generates rss feed with empty videoid in media:content url: <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="40422886" type="audio/mp4"/>

Version

git version from right now (0.11-dev). "right now" means 2019-09-30 approx 2pm CEST

Additional Information

I used docker to test it:

docker run -d -e 'GIT_REPO=https://github.com/jeckman/YouTube-Downloader' -p 8080:80 richarvey/nginx-php-fpm:latest

Downloads of single videos via the web gui are working. Generating a feed for user=heisenewsticker&format=140 creates this feed, with videoid always empty:

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns:yt="http://www.youtube.com/xml/schemas/2015" xmlns:media="http://search.yahoo.com/mrss/" xmlns="http://www.w3.org/2005/Atom">
 <link rel="self" href="http://www.youtube.com/feeds/videos.xml?user=heisenewsticker"/>
 <id>yt:channel:UCAszOEwa5CS4WFwYpkjdaUQ</id>
 <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
 <title>heise online</title>
 <link rel="alternate" href="https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ"/>
 <author>
  <name>heise online</name>
  <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
 </author>
 <published>2011-01-09T11:40:53+00:00</published>
 <entry>
  <id>yt:video:kESbTFekP-A</id>
  <yt:videoId>kESbTFekP-A</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>Lego-Porsche-Crash als 360-Grad-3D-Video in Zeitlupe (Computersimulation)</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=kESbTFekP-A"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-30T11:24:34+00:00</published>
  <updated>2019-09-30T12:10:39+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="0" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="0" type="audio/mp4"/></entry>
 <entry>
  <id>yt:video:daiH9Wak0R4</id>
  <yt:videoId>daiH9Wak0R4</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>Software-Lizenzen, Lego-Crash 2.0 und kopiergeschützte USB-Sticks | c't uplink 29.4</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=daiH9Wak0R4"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-28T06:00:02+00:00</published>
  <updated>2019-09-28T06:00:03+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="40422886" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="40422886" type="audio/mp4"/></entry>
 <entry>
  <id>yt:video:16L3ZjH7hBI</id>
  <yt:videoId>16L3ZjH7hBI</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>Siemens, Libra, Amazon Day 1 Edition, ISS | Kurz informiert vom 26.09.2019</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=16L3ZjH7hBI"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-26T15:00:00+00:00</published>
  <updated>2019-09-26T15:00:01+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="2206586" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="2206586" type="audio/mp4"/></entry>
 <entry>
  <id>yt:video:SB49VZ3kEjI</id>
  <yt:videoId>SB49VZ3kEjI</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>Laser vs. Tintenstrahl, kostenlose Tintenabos – Wie sieht's aus bei Druckern? | #heiseshow</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=SB49VZ3kEjI"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-26T13:58:08+00:00</published>
  <updated>2019-09-27T02:50:55+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="50720805" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="50720805" type="audio/mp4"/></entry>
 <entry>
  <id>yt:video:7_HTJbExSmI</id>
  <yt:videoId>7_HTJbExSmI</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>Weltklimarat, Teamviewer, Sprachassistenten, JPMorgen-Hack | Kurz informiert vom 25.09.2019</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=7_HTJbExSmI"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-25T15:00:00+00:00</published>
  <updated>2019-09-25T15:00:01+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="2256530" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="2256530" type="audio/mp4"/></entry>
 <entry>
  <id>yt:video:JJezNuV-ZK0</id>
  <yt:videoId>JJezNuV-ZK0</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>c't Crashtest 2.0 – Wenn Legoteile fliegen (Trailer)</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=JJezNuV-ZK0"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-25T09:54:47+00:00</published>
  <updated>2019-09-25T10:35:03+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="582615" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="582615" type="audio/mp4"/></entry>
 <entry>
  <id>yt:video:K23CgQ5XvY0</id>
  <yt:videoId>K23CgQ5XvY0</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>IE, DE-CIX, Opera Mini, Spacepolice | Kurz informiert vom 24.09.2019</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=K23CgQ5XvY0"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-24T15:00:02+00:00</published>
  <updated>2019-09-24T15:00:03+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="0" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="0" type="audio/mp4"/></entry>
 <entry>
  <id>yt:video:at-qUizJE6I</id>
  <yt:videoId>at-qUizJE6I</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>Zwei Grad Klimaerwärmung allein durch Bitcoin? | nachgehakt</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=at-qUizJE6I"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-24T13:23:11+00:00</published>
  <updated>2019-09-24T21:54:59+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="0" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="0" type="audio/mp4"/></entry>
 <entry>
  <id>yt:video:okkvTT48WPg</id>
  <yt:videoId>okkvTT48WPg</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>Google Assistant, Weltklima, Mac Pro, Open Memory Box | Kurz informiert vom 23.09.2019</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=okkvTT48WPg"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-23T15:00:10+00:00</published>
  <updated>2019-09-23T15:00:12+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="0" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="0" type="audio/mp4"/></entry>
 <entry>
  <id>yt:video:qrE60anyRew</id>
  <yt:videoId>qrE60anyRew</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>Siri, Alexa &amp; Co.: Feind oder Helfer? | c't uplink 29.3</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=qrE60anyRew"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-21T06:11:13+00:00</published>
  <updated>2019-09-23T22:26:42+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="84346141" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="84346141" type="audio/mp4"/></entry>
 <entry>
  <id>yt:video:qSE4Ztfsk5c</id>
  <yt:videoId>qSE4Ztfsk5c</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>BKA, Polarstern, Twitter, BlockConnect | Kurz informiert vom 20.9.2019</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=qSE4Ztfsk5c"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-20T15:00:11+00:00</published>
  <updated>2019-09-20T15:00:12+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="2187059" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="2187059" type="audio/mp4"/></entry>
 <entry>
  <id>yt:video:OTt6MH2_nIE</id>
  <yt:videoId>OTt6MH2_nIE</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>Blockchain-Strategie, Eclipse, Amazon-Marketplace, E-Scooter-Akku | Kurz informiert vom 19.09.2019</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=OTt6MH2_nIE"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-19T15:09:53+00:00</published>
  <updated>2019-09-19T15:36:10+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="2170911" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="2170911" type="audio/mp4"/></entry>
 <entry>
  <id>yt:video:5YlR7NAhfMI</id>
  <yt:videoId>5YlR7NAhfMI</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>3D-Drucker – Wie sieht's aus nach dem Hype? | #heiseshow</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=5YlR7NAhfMI"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-19T10:59:50+00:00</published>
  <updated>2019-09-22T04:31:21+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="46217944" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="46217944" type="audio/mp4"/></entry>
 <entry>
  <id>yt:video:H0XrexW5lrc</id>
  <yt:videoId>H0XrexW5lrc</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>Google-Kalender, Facebook-Gremium, Postfilialen, Firefox-Updates | Kurz informiert vom 18.09.2019</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=H0XrexW5lrc"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-18T15:00:05+00:00</published>
  <updated>2019-09-18T15:00:06+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="2114959" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="2114959" type="audio/mp4"/></entry>
 <entry>
  <id>yt:video:xFfTI0lvAwE</id>
  <yt:videoId>xFfTI0lvAwE</yt:videoId>
  <yt:channelId>UCAszOEwa5CS4WFwYpkjdaUQ</yt:channelId>
  <title>Patientendaten-Leak, E-Scooter-Akkus, iOS-Hack, Internetausfall | Kurz informiert vom 17.09.2019</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=xFfTI0lvAwE"/>
  <author>
   <name>heise online</name>
   <uri>https://www.youtube.com/channel/UCAszOEwa5CS4WFwYpkjdaUQ</uri>
  </author>
  <published>2019-09-17T15:00:08+00:00</published>
  <updated>2019-09-17T15:00:09+00:00</updated>
  <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140" length="2238880" type="audio/mp4"/>
 <media:content url="http://localhost:8080/getvideo.php?videoid=&amp;format=140&amp;proxy=true" length="2238880" type="audio/mp4"/></entry>
</feed>

tuxpeople avatar Sep 30 '19 13:09 tuxpeople