agizmo / rsshandler

Automatically exported from code.google.com/p/rsshandler
0 stars 0 forks source link

YouTube Podcast Not Found (HTTP 500 Error) #65

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Find any YouTube Channel ID 
2. Generate Podcast URL
3. Paste the URL in either browser window or Podcast app. 

What is the expected output? What do you see instead?

HTTP ERROR: 500

Problem accessing /video.mp4. Reason:

    /watch:
java.lang.IllegalArgumentException: Couldn't find URL map.

What version of the product are you using? On what operating system?

RSSHandler-3.0.1.19
Mac OS 10.10.1

Please provide any additional information below.

Tried downgrading Java versions and changing formats. Both had the same outcome.

Original issue reported on code.google.com by rawbreed...@gmail.com on 6 Dec 2014 at 5:46

GoogleCodeExporter commented 9 years ago
The issue is, in file /RSSHandler/src/com/rsshandler/servlets/VideoServlet.java

line 
private static final String YOUTUBE_URL = "http://www.youtube.com/watch?v=";

should have HTTPS instead of HTTP.

I compiled my own version and it works fine for me. Compiled version attached.
No guarantees it will work for you, I can not help you if you have issues with 
this version

Original comment by mic....@gmail.com on 7 Dec 2014 at 12:52

Attachments:

GoogleCodeExporter commented 9 years ago
This worked GREAT! Thank you sir. Anyone else having this problem on mac go to 
the app, right or cntrl+click, show package contents, go in the folder order 
Contents/Resources/Java and replace RSSHandler-3.0.1.19.jar with the file 
attached to this thread. RSSHandler-3.0.1.19.M2.jar. Make sure it is renamed to 
the exact same file in the Java folder RSSHandler-3.0.1.19.jar. Once the app is 
launched with that file replaced all links back to working again. Bravo sir.

Original comment by rawbreed...@gmail.com on 7 Dec 2014 at 3:37

GoogleCodeExporter commented 9 years ago
Tried it... working 100%! Thank you!

Original comment by thiago.k...@gmail.com on 7 Dec 2014 at 5:39

GoogleCodeExporter commented 9 years ago
Thanks for the update, resolved the issue for me as well.

Original comment by mikebar...@tekies.net on 10 Dec 2014 at 3:06

GoogleCodeExporter commented 9 years ago
Will this work for Windows as well?

I had removed my feed thinking re-adding it may fix something. I tried this jar 
file but it just re-adds the feed as "playistid on Youtube" and never finds any 
details and or actual files.

Original comment by mastafro...@gmail.com on 19 Dec 2014 at 10:48

GoogleCodeExporter commented 9 years ago
It appears the problem has came back again less than 24 hours after the 
Facebook-Instagram crash. (Not sure if that means anything.) I'm getting the 
exact same error I had before. Any ideas on what's going on???

Original comment by rawbreed...@gmail.com on 27 Jan 2015 at 4:33

GoogleCodeExporter commented 9 years ago
I am getting the same problem as well. 

Original comment by minispa...@gmail.com on 28 Jan 2015 at 2:23

GoogleCodeExporter commented 9 years ago
Problem now back again. any other solution you recommend trying?

Original comment by patchrul...@gmail.com on 28 Jan 2015 at 9:52

GoogleCodeExporter commented 9 years ago
found it.

first followed advise to change 

private static final String YOUTUBE_URL = "https://www.youtube.com/watch?v=";

then

removed space character the search string and ended up with

final String TAG_NAME = "\"url_encoded_fmt_stream_map\":\"";

oh yeah, and this build handles 50+ playlists :D (man its been years)

Original comment by capanch...@gmail.com on 29 Jan 2015 at 10:53

Attachments:

GoogleCodeExporter commented 9 years ago
^^^
Your attached file doesn't run
anyone else able to compile with this change to see if it is a solution?

Original comment by patchrul...@gmail.com on 29 Jan 2015 at 12:33

GoogleCodeExporter commented 9 years ago
Works for me on Mac OS X, installed using the instructions in comment #2. Thank 
you!

Original comment by eugene.o...@gmail.com on 29 Jan 2015 at 4:49

GoogleCodeExporter commented 9 years ago
The version, attached in #9 has trouble updating half of my feeds. I am getting 

= = = = =
HTTP ERROR: 500

Problem accessing /user.rss. Reason:

    No group 6
= = = = =

An example of the channel that doesn't work anymore: TheVerge

Original comment by eugene.o...@gmail.com on 29 Jan 2015 at 5:18

GoogleCodeExporter commented 9 years ago
version from comment one gives me this error

HTTP ERROR: 500

Problem accessing /video.mp4. Reason:

    /watch:
java.lang.IllegalArgumentException: Couldn't find URL map.

Version from comment 9 gives me this error.

HTTP ERROR: 500

Problem accessing /video.mp4. Reason:

    com.rsshandler.servlets.VideoServlet$VideoURL.<init>(Lcom/rsshandler/servlets/VideoServlet;Ljava/lang/String;Lcom/rsshandler/servlets/VideoServlet$1;)V

Original comment by patchrul...@gmail.com on 29 Jan 2015 at 11:01

GoogleCodeExporter commented 9 years ago
sorry for that. it seems the latest java's regexes arent behaving like they 
used to. so far, ive had to deal with whitespaces and backslashes.
bad news: it seems that youtube api v2 (what rsshandler is using) refuses to 
give videos 500+ up. that means the max number of videos is now only 500. 

check this out: 

http://gdata.youtube.com/feeds/base/users/TheVerge/uploads?alt=rss&v=2&max-resul
ts=50&orderby=published&start-index=451
vs
http://gdata.youtube.com/feeds/base/users/TheVerge/uploads?alt=rss&v=2&max-resul
ts=50&orderby=published&start-index=452

as you can see the second url gives a goddamn 404.
So tough luck for those who subscribe to channels like theverge (2391 entries), 
you'll have to manually split them into playlists.
this attachment is for osx/nix people who run shell scripts (i use it as a 
service). windows users, please make your own batch file (its simple anyway, a 
little googling wont hurt).
so i guess rsshandler must be reborn (one way or another) to api v3. might i 
suggest python or php?

Original comment by capanch...@gmail.com on 30 Jan 2015 at 6:48

Attachments:

GoogleCodeExporter commented 9 years ago
Does anyone here have any thoughts on issue 58?  That is the one that is really 
holding me back from using this.

Original comment by cmumathw...@gmail.com on 30 Jan 2015 at 3:25

GoogleCodeExporter commented 9 years ago
finalized, for now. 
now, i did some reading around turns out the orderby parameter in the youtube 
api is causing the limit. if you omit it, it'll supposedly fetch in published 
order anyway (according to the google blog), so there's that.
The only problem is... well, the counts dont match. the maximum count is when 
orderby is used, and more surprisingly, itunes only half of the total count. Eg 
TheVerge:
count w/ orderby = 2391
count w/o = 2333
final count loaded into itunes = 1175
so there. it's been a refreshing day, thanks for the challenge, but for now, 
that's all folks!

Original comment by capanch...@gmail.com on 30 Jan 2015 at 4:32

Attachments:

GoogleCodeExporter commented 9 years ago
@capanch (or anyone) Is there anyway to get your version of rsshandler to honor 
the  &max-results param? I have mine set to 50 and its pulling way more than 
10000 items essentially breaking my rss downloader 

Original comment by minispa...@gmail.com on 2 Feb 2015 at 2:41

GoogleCodeExporter commented 9 years ago
the error 500 has returned.  The previous fixes in this thread helped but now I 
can't figure it out.

Original comment by g...@thatgrumguy.com on 9 Feb 2015 at 2:00

GoogleCodeExporter commented 9 years ago
in the old version, error 500 occurs if the video being downloaded is 
restricted (or unavailable/removed,etc) since the URL map is not returned in 
the video info request. The old proposed fix for this was that we use our 
google id's to login (which will prove that we are 18+ yrs old, since everybody 
puts a birthday greater than 18 years ago regardless of age hahaha), but that 
never came to fruition. 

i will check again tonight if this happens for regular videos.

Original comment by capanch...@gmail.com on 12 Feb 2015 at 1:45