mirror of
https://github.com/horacio9a/cam4-anonymous.git
synced 2024-09-20 06:56:00 +08:00
v.1.0.3 cam4-anonymous script with suppressed rtmpdump window
This commit is contained in:
parent
e2205c750f
commit
6733e5a464
6
c4.py
6
c4.py
|
@ -1,4 +1,4 @@
|
|||
# Cam4 Anonymous Freechat RTMP Recorder v.1.0.2 by horacio9a for Python 2.7.13
|
||||
# Cam4 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()
|
||||
|
@ -89,6 +89,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]
|
||||
|
||||
|
@ -99,7 +101,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)
|
||||
|
|
Loading…
Reference in a new issue