Author: glen
Date: Sat Dec 21 15:34:35 2013
New Revision: 12736

Modified:
   toys/rsget.pl/Video/Kanal2
Log:
handle optional streamItems params

Modified: toys/rsget.pl/Video/Kanal2
==============================================================================
--- toys/rsget.pl/Video/Kanal2  (original)
+++ toys/rsget.pl/Video/Kanal2  Sat Dec 21 15:34:35 2013
@@ -11,7 +11,7 @@
 uri: qr{kanal(?:2|11).ee/vaatasaateid/.+\?videoid=\d+}
 # limit slots bacause rtmp support is very bad
 slots: 3
-status: OK 2013-11-30
+status: OK 2013-12-21
 
 start:
        GET( $-{_uri} );
@@ -45,10 +45,11 @@
 
        } else {
                # <streamItems host="rtmp://...">
+               # <streamItems host="rtmp://..." minimumHQBandwidth="1100" 
bandwidthCheckCount="3">
                #   <streamItem streamName="....mp4:..." bitrate="700" 
width="640" height="360" />
                #   <streamItem streamName="....mp4:..." bitrate="500" 
width="480" height="270" />
                # </streamItems >
-               ! m{<streamItems host="([^"]+)">(.+)</streamItems\s*>}ms;
+               ! m{<streamItems host="([^"]+)".*?>(.+)</streamItems\s*>}ms;
                my $vod_uri = $1;
                my $items = $2;
                my @list;
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to