|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Junior Member
Join Date: Nov 2012
Posts: 3
|
Which Return Format for Next Songs via Dynamic Playlist Script?
hi together,
i am using sc_serv in combination with sc_trans on my linux server to broadcast mp3s that lie in a music folder on the same server. i wrote a python script that creates a dynamic playlist from my mp3s. i stuck to the documentation and my playlist only contains this call of my script: code: as the documentation states: The script run in this case should return the entry in the playlist to run at this point. The script is also passed an integer parameter indicating how many tracks ahead must also be returned by the script.therefore, to achieve some kind of playlist behavior, every time the script is called by sc_trans i just print out the path to the next song followed by the paths to the songs coming up afterwards (each in a new line). i print out exactly the amount of songs that i get by the parameter by sc_trans mentioned above. the printouts look like this: /home/shoutcast/music/songs/Bodies of Water - One Hand Loves the Other.mp3however, when i look in the information in sc_trans's logs i see this: HTML Code:
<?xml version="1.0" encoding="UTF-8" ?> <metadata> <COMM language="eng" id="iTunNORM"> 000010EE 000010C9 0000DD30 00007477 00024E62 00024E62 00008000 00008000 000001E7 000008B5</COMM> <COMM language="eng">compiled by nico</COMM> <TALB>2011 - You can't hug every cat</TALB> <TCON>Indie</TCON> <TDRC><year>2011</year></TDRC> <TENC>TRANSCast DNAS/posix(linux x64) v2.0.0.54</TENC> <TIT2>One Hand Loves the Other</TIT2> <TLEN>225573</TLEN> <TPE1>Bodies of Water</TPE1> <TPE2>Bodies of Water</TPE2> <TRCK>4</TRCK> <TSSE>LAME 32bits version 3.98.4 (http://www.mp3dev.org/)</TSSE> <TYER>2011</TYER> <extension> <title seq="1">Bodies of Water - One Hand Loves the Other</title> <title seq="2">dynamicPlaylist</title> <title seq="3">dynamicPlaylist</title> <title seq="4">dynamicPlaylist</title> <soon>dynamicPlaylist</soon> </extension> </metadata> |
![]() |
![]() |
#2 |
Join Date: Sep 2003
Posts: 27,873
|
the feature doesn't work correctly as it ignores the additional tracks you provide in the response which is why it's then just showing the name of the script entry for the next tracks instead of what was returned. there has been some work done on trying to rectify the issue but as i'm currently not working on sc_trans i don't have any eta for when a fixed version will be released. and the format of the response from the script is fine from what i remember of what the parser is designed to cope with.
-daz |
![]() |
![]() |
#3 |
Junior Member
Join Date: Nov 2012
Posts: 3
|
ok, cool. thank's for the answer! then i will spend no further efforts into evolving this functionality. (would be cool if that piece of information could be included into the docs and the wiki. then the next one will not try endlessly as me to implement that feature.)
|
![]() |
![]() |
#4 |
Junior Member
Join Date: Nov 2012
Posts: 3
|
Python Dynamic Playlist Script for SHOUTcast Transcoder
If anyone likes to use my script (or wants to comment to it), feel free to do so. the script must be called from a transcoder playlist (see first post in this thread). please find fully commented script in the attached zip file.
Last edited by lagerkoller; 7th November 2012 at 11:55. |
![]() |
![]() |
#5 |
Junior Member
Join Date: Jun 2016
Posts: 16
|
thank's for the answer! then i will spend no further efforts into evolving this functionality. (would be cool if that piece of information could be included into the docs and the wiki. then the next one will not try endlessly as me to implement that feature.)
If anyone likes to use my script (or wants to comment to it), feel free to do so. the script must be called from a transcoder playlist (see first post in this thread). please find fully commented script in the attached zip file. |
![]() |
![]() |
#6 |
Major Dude
Join Date: Mar 2011
Posts: 576
|
Since the last answer in this thread, in last 4 years, the support and the development of sc_trans was closed. So I guess there is no need to add it.
![]() |
![]() |
![]() |
#7 | |
Junior Member
Join Date: Jun 2016
Posts: 16
|
Quote:
|
|
![]() |
![]() |
#8 |
Junior Member
Join Date: Jun 2016
Posts: 16
|
i love to hear new music...There are many new music now a days but some are my favourite music New Songs 2016
|
![]() |
![]() |
#9 |
Junior Member
Join Date: Jun 2016
Posts: 16
|
songs
guys???
i am a song lover .... wanna see the reason why? then come and see top songs of 2016 |
![]() |
![]() |
#10 |
Junior Member
Join Date: Jun 2016
Posts: 16
|
[QUOTE=michele-01;30605
|
![]() |
![]() |
#11 | |
Junior Member
Join Date: Jun 2016
Posts: 16
|
Quote:
Python Dynamic Playlist Script for SHOUTcast Transcoder If anyone likes to use my script (or wants to comment to it), feel free to do so. the script must be called from a transcoder playlist (see first post in this thread). please find fully commented script in the attached zip file |
|
![]() |
![]() |
#12 |
FRISIAN
Join Date: Sep 2003
Location: in a house
Posts: 16,461
|
Thread closed due to spam invasion
|
![]() |
![]() |
|
Tags |
dynamic, playlist, python, shoutcast, transcoder |
Thread Tools | Search this Thread |
Display Modes | |
|
|