Skip to content

Commit

Permalink
buggy timeout in rtmp videos reduced (from 180s to 10s)
Browse files Browse the repository at this point in the history
  • Loading branch information
idleloop-github committed Jan 5, 2019
1 parent c661997 commit d76457b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.txt
@@ -1,6 +1,7 @@
V1.3.0
(2019, Jan)
patched site, speed up by using parseDOM
buggy timeout in rtmp videos reduced (from 180s to 10s)

v1.2.0
(2017, Sept)
Expand Down
4 changes: 2 additions & 2 deletions channel.py
Expand Up @@ -7,7 +7,7 @@
#------------------------------------------------------------

# Code Upated by: Blazetamer 2014
# Code Updated by: idleloop @ 2014 Oct, 2015 March, 2017 Aug, 2017 Sept
# Code Updated by: idleloop @ 2014 Oct, 2015 March, 2017 Aug, 2017 Sept, 2019 Jan

import urlparse,urllib2,urllib,re
import os, sys
Expand Down Expand Up @@ -343,7 +343,7 @@ def calculate_url(video_url):
###playpath = scrapertools.get_match(video_url,"rtmp\://[^\/]+/[a-z]+/([a-zA-Z0-9]+\.flv)")
playpath = scrapertools.get_match(video_url,"rtmp\://[^\/]+/[a-z]+/(.+\.flv)")
swfurl = "https://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf"
url=rtmp_url + " app=" + app + " swfUrl=" + swfurl + " playpath=" + playpath + " live=true timeout=180"
url=rtmp_url + " app=" + app + " swfUrl=" + swfurl + " playpath=" + playpath + " live=true timeout=10"
if (DEBUG): logger.info("calculated_url="+url)
return url

Expand Down

0 comments on commit d76457b

Please sign in to comment.