Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

How to use iView (ABC Australia) downloaders

(http://stream-recorder.com/forum/showthread.php?t=7039)

Yansky 03-11-2011 11:35 PM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by gxdata (Post 26076)
The blog post from Rick Strahl indicates the same, I think. But I am using WebClient() in .NET and don't see similar switches. The stream that I read is UTF-8 encoded, and gzip.exe / ungzip.exe doesn't recognize its format. I'm having a mental block atm.

What about this: http://msdn.microsoft.com/en-us/libr...=vs.80%29.aspx

Yansky 03-11-2011 11:45 PM

Re: How to use iView (ABC Australia) downloaders


 
Slightly OT, but check this out - http://forums.whirlpool.net.au/forum....cfm?t=1656227

I have to pay now to get the gcc compiler for OSX.

Anywho 03-11-2011 11:50 PM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by gxdata (Post 26076)
They seem to be switching from GZ to text mode quite often, so the test for the "[{" characters will be needed at each new catalog fetch. I'm not sure what they are doing with the Series JSON files.

With the batch file downloader, I've been using:

Code:

wget --accept "text/html;level=1" -O index.json http://tviview.abc.net.au/iview/api2/?seriesIndex
This seems to work at forcing their server to spit back the text only. (wget allows you to mess with the headers if you need to ;))

mce 03-11-2011 11:52 PM

Re: How to use iView (ABC Australia) downloaders


 
I've had the switching during my development too.

At one point there, 3 out of 5 requests were gzip the others plain.

gxdata 03-11-2011 11:55 PM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by Yansky (Post 26078)

haha - I was about to amend my last post, having just read this -

Quote:

A WebClient instance does not send optional HTTP headers by default. If your request requires an optional header, you must add the header to the Headers collection.
- and a link to a similar page.

Thanks for that!

Yansky 03-12-2011 12:00 AM

Re: How to use iView (ABC Australia) downloaders


 
Any reason you guys use wget instead of curl ? Nothing against wget, just curious.

(i love curl ) :p

Anywho 03-12-2011 12:25 AM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by Yansky (Post 26083)
Any reason you guys use wget instead of curl ? Nothing against wget, just curious.

(i love curl ) :p

Dunno! It's always been there in the distributable and never really bothered to look at anything else. From memory, I think it was because of the DLL hell - the fluff on the side you needed to get it to work which would cause the package size to blow out. wget is only 159K and doesn't use extra fluff.

I did use it in the SBS_DL_LINUX downloader... Should probably have another look at it - pretty sure it does gzip.

[edit: Looking at a 386KB version right now...]

Anywho 03-12-2011 12:52 AM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by Yansky (Post 26083)
Any reason you guys use wget instead of curl ?

Have tried a "simple" version of it from here. This one doesn't have the SSL fluff on it so it is a fair bit cheaper - but it seems to do the job I think.

Thank you Yansky for the reminder!!!

I'll just pack this up into an archive with the newer RTMPdump and the edited batch file.

Anywho 03-12-2011 01:16 AM

Re: How to use iView (ABC Australia) downloaders


 
Newer version of iView Downloader (batch file version) - v15.82 is here.
  • Updated batch file for latest changes (so far).
  • Newer version of RTMPdump v2.3 (r557) has been included - fixes resuming in some FLV files.

iView_GetSRT has been updated too. You can get it from here.

Updated iView_Later to v1.2. You can get it from here.

(Note that the web page download titles appear to be wrong. The files you download are updated but the page titles haven't filtered to all the servers just yet.)

gxdata 03-12-2011 04:34 AM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by Anywho (Post 26094)
Newer version of iView Downloader (batch file version) - v15.82
  • Updated batch file for latest changes (so far).
  • Newer version of RTMPdump v2.3 (r557) has been included - fixes resuming in some FLV files.
iView_GetSRT has been updated too.
Updated iView_Later to v1.2.

Great stuff!

I have used your ungzip.exe with both gzip-format and 'proper' JSON files: it plays well with text (uncompressed) catalog files - I can save a (text) JSON file as catalog.gz and ungzip.exe catalog.gz catalog.json results in a usable file.


All times are GMT -6. The time now is 10:58 AM.