View Single Post
  #252  
Old 10-30-2017, 11:53 PM
gdunc gdunc is offline
Junior Member
 
Join Date: Aug 2015
Posts: 19
gdunc is on a distinguished road
Default

Re: www.chaturbate.com - HowTo record 100% free XXX/adult web-cam videos


Quote:
Originally Posted by supersonic80 View Post
I've just tried this version (master.zip) with node.js 8.8.1 and it worked flawlessly straight away:
Just installed Node.js 8.8.1, grabbed the latest Capturebate-Node, and now it seems to be working.

Got no idea why unless it needed something in the latest Node.js but I spent an hour looking at the Javascript trying to work out why it wasn't seeing models online when v0.2.4 did ... and nothing had really changed in that section of the script.

BTW, for ease of use I start both scripts using PowerShell via a shortcut:

Code:
# CB-Node.ps1
$console = $host.UI.RawUI
$console.BackgroundColor = 'Black'
$console.WindowTitle = 'Capturebate-Node'
$size = $console.WindowSize
$size.Width = 80
$size.Height = 20
$console.WindowSize = $size
Clear-Host

Function Rerun {
  $temp = "Script restarted at: " + (Get-Date -UFormat "%Y%m%d, %H:%M:%S")
  $temp | Out-File -FilePath ".\debug.txt" -Append
  Start-Process -FilePath node.exe -ArgumentList "main.js" -WorkingDirectory X:\Capturebate-Node -Wait -NoNewWindow -PassThru
}

Start-Process -FilePath node.exe -ArgumentList "convert.js" -WorkingDirectory X:\Capturebate-Node -NoNewWindow -PassThru

While ($true) {
 Rerun
}
I found that the Capturebate-Node script sometimes closed for no reason, (I suspect a problem fetching the web page), so I created the PowerShell script to start main.js, wait until it closed, then restart it, writing an entry to a log file.

It also starts the convert.js script, so all output is to the one window:

Code:
Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
-------  ------    -----      -----     ------     --  -- -----------
     44       3      812       2768       0.06   8916   1 node
     10       1      456         40       0.02   3884   1 node
[20171031-163921] 0 file(s) to convert
[20171031-163921] Done, will scan the folder in 300 seconds.
[20171031-163928] somemodel is now online, starting rtmpdump process
[20171031-163931] Done, will search for new models in 30 second(s).
Shortcut properties:
Code:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -noprofile -executionpolicy bypass -File "CB-Node.ps1"
I use the same kind of PoSh script for MFC-Node, (which drops out even more).

Last edited by gdunc : 10-31-2017 at 06:11 AM.
Reply With Quote