From f0bc9282a3f38c8191cf477711ce32a06fc626a1 Mon Sep 17 00:00:00 2001 From: horacio9a Date: Wed, 30 Aug 2017 18:24:54 +0200 Subject: [PATCH] v.1.0.3 Remote rtmpdump 24/7 cam4-anonymous script with suppressed data --- c4r.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/c4r.py b/c4r.py index 54466f2..a32e1d3 100644 --- a/c4r.py +++ b/c4r.py @@ -1,4 +1,4 @@ -# Cam4 Remote Anonymous Freechat RTMP Recorder v.1.0.2 by horacio9a for Python 2.7.13 +# Cam4 Remote Anonymous RTMP Recorder v.1.0.3 by horacio9a for Python 2.7.13 import sys, os, urllib, urllib3, ssl, re, time, datetime, command urllib3.disable_warnings() @@ -75,6 +75,8 @@ if "Trending Cams" not in dec: vpu0 = dec.split('videoPlayUrl=')[1] vpu = vpu0.split('&')[0] + model0 = vpu.split('-')[0] + swf0 = dec.split('data="')[1] swf = swf0.split('"')[0] @@ -85,7 +87,7 @@ if "Trending Cams" not in dec: timestamp = str(time.strftime("%d%m%Y-%H%M%S")) path = config.get('folders', 'output_folder') - filename = model + '_C4_' + timestamp + '.flv' + filename = model0 + '_C4_' + timestamp + '.flv' pf = (path + filename) print (colored(' => Start rtmpdump => RECORD => {} <=', 'yellow', 'on_red')).format(filename)