Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 27th August 2017, 19:39   #11
dopelabs
Major Dude
 
dopelabs's Avatar
 
Join Date: Oct 2006
Location: Silicon Valley
Posts: 529
Send a message via AIM to dopelabs
so right now the script takes advantage of twitters ability to deny a new tweet if its identical to the last. if you were to include the listener count, you would potentially have a new tweet every time you call the script, since the listener count could be different, thus in turn the tweet would be different from the last because of the listener count.

for those who have the script setup to be called via a cron job or having the page auto refresh in the browser, that could be as often as once a minute, or how often the refresh timeout is set within the script.

if however you have things setup so that your calling the script when the track changes things would be a bit easier.

i currently have a script called 'metapush' which checks the playlist history file thats generated by the source software. it checks once a minute. if theres a new entry at the end of the list, i have it call the twittercast script, send the title updates out to all my streaming servers, update the titles that get displayed on the website, in the mobile apps, within the video stream, etc.

i have re-added the auto refresh into the code on github.
dopelabs is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump