BEEG - AN ADULT STREAMS VIDEO WEB RESOURCE
Implement as a Webresource, using the links of the form where www. is optional:
http://www.beeg.com = section/home/1
http://www.beeg.com/section/home[/n]
http://www.beeg.com/section/long-videos[/n]
http://www.beeg.com/tag/xxx[/n]
where n is a valid page number and xxx is one of the tags displayed under the 'tags' tab at http://www.beeg.com.
or to search
http://www.beeg.com/search?q=xxxxx
where xxxxx is the term within a video title.
If /n is not specified it defaults to page 1
If either page or tag are invalid, the home page 1 will be used.
The parameters start=xxx and for=yyy may also be used to define the range of videos to be accessed, otherwise 'start' will default to 1 and 'for' will default to the console value. For example http://www.beeg.com/section/home/20?start=399&for=1 will get video number 8000.
The groovy will post progress time stamps within the DEBUG log, and once items begin to be extracted will exit after 27 seconds and process items extracted to that point in order to avoid the Serviio 30 second timeout on slow cpu's.
Note that due to the common format of the beeg video urls, the groovy quickly generates the video urls for each file rather than slowly extract them from the beeg site with each refresh, and it only extracts the current url from beeg at playback time in case the beeg url has changed servers. For 350 videos this reduces the url extract refresh time from 22 minutes to 1 second.
Recent experience has shown however that urls using the alternate beeg servers are prone to failure and so with V10 the groovy offers a parameter usegen=1 to force the use the generated urls at playback time.
Version 2 - 5x Performance improvement, full tag,long and page support.
Version 3 - Eliminate repetative ffmpeg calls since all files are the same.
Version 4 - use console value as the 'for' default value.
Version 5 - Support revised web source
Version 6 - Major Performance improvement, Support search & http://beeg.com url, log progress timestamps.
Version 7 -Improved URL Extract Performance as well.
Version 8 - Fix titles and thumb extract, add option to generate urls
Version 9 - Eliminate genurls option and only extract when played.
Version 10 - Add usegen option to ignore new beeg urls
Version 11 - May 27, 2013 Fix empty search bug, video/titles mismatch.