I was really happy to see that this program was being maintained and updated. Wow, really nice update - very impressed. I am using Linux Mint KDE 17.1 and the one in the repos was old and did not work. I found this by accident, and glad I did.
Everything seems to be working except the "timer" for recording. I have the program running, but it will not start recording automatically at the time specified, ex: "Sun 04:00-04:21 record". I was wondering if dates could be used as well as the generic weekdays, can the day(s) be left off for recording the same time everyday, or do you have to specify each day? I would really like to get this working.
And, how do I add my own custom station urls?
Thank you,
Last edit: phd21 2015-11-08
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The timer plugin depends on the Python kronos module. For testing please try to start streamtuner2 -D and watch out for error messages regarding either. May not work with Python3 at all. (Though I tested it with Gnome-based Ubuntu/Mint.)
Also I just checked; and it didn't copy the stream url field along when bookmarking a timer.
It's also somewhat picky with the time specifiers. kronos does allow more complex time ranges IIRC. But the ST2 timer module extracts only a subset of fields, so the record/play suffix can be detected.
Honestly I hadn't used it for a while, else I'd have externalized the whole recording functionality to cron as planned.
Adding new stations kind of works, but it's a workaround. Just open an existing station per Station→Edit and use [copy/new], then update title and url.
We could have a proper Station→New function for that, but I didn't want to clutter the menu too much.
BR.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Oh, I just got an error message with extra logging enabled: [ERR] queuing error global name 'act' is not defined
So it's perhaps really broken. (Though that's just my test version.)
Last edit: Mario Salzer 2015-11-08
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Though you can probably update the module just per Config → 📦 Add → Refresh → Install "timer".
I could probably add an option to specify "all", "any" an asterisk "*" for all weekdays. But I'm not sure if specific dates can be used with the task scheduler.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you, I really appreciate you responding so quickly.
"timer plugin depends on the Python kronos module". I have python2 and python3 installed and most everything related to those. I could not find any reference in the Software Manager or Synaptic Package Manager (SPM) in my system regarding this "kronos" module? Could it be part of another python module? How could I verify, check, to see if that is installed, and or functioning properly?
I download your updates to the "timer.py" file (Thanks again). I checked my "/home/phil/.config/streamtuner2/plugins/" folder and it was empty before, except maybe for the "init.py". I have not had a chance yet to test the "timer", but I will. I did not manually put ht e"timer.py" file into the "/plugins" folder because I wanted to try the "Add->Refresh" option.
In my StreamTuner2, I do not have "Config → 📦 Add → Refresh → Install "timer". I have and went through the "Edit", "Properties", "Add" tab, then clicked "Refresh", then I clicked "save" on everything, including "Recording Timer". I then went to check the contents of the "plugins" folder and there are now some Python files in there including "timer.py", and "timer.pyc". What is the "timer.pyc"? Is that a compiled version? Below I have also included the results of starting "streamtuner2 -D" before any updates, and after the updates, for you to review.
I just tried "StreamTuner2", just to play various streaming stations, which all that I tried before worked, including those from yesterday. But, now some station categories, sections, do not seem to be working now, TuneIn, Surf Music-Florida, Live365 just doesn't show anyting active. Perhaps I should not have clicked "save" to everything in the "Edit (config)--> Add" options?
In the "tunein" section, under "local" stations, I now get an error that did not happen yesterday? I am using "smplayer" to play the stations.
If I use the "VLC" media player for "audio/mpeg =vlc", then the streaming stations from "TuneIn" & "SurfMusic", will play, at least the ones that did yesterday with "smplayer". Most of the other stations also work. I also tried my favorite music application Amarok, and all worked except the the ones from "TuneIn" & "SurfMusic", they came up with the message below.
"requires a plug-in uri text decoder, & can't find the plugin, stations show up as, 'tune.ashx' "?
I liked a lot that ST2 updated Amarok's playlist, pretty cool. Any of the other type of streams, used VLC and worked. I understand that streaming stations change formats and such, so I do not expect all of them to work.
The scheduled Timer recording did start just like it was supposed to, with the correct station, but it did not stop the timer recording when it was supposed to.
I have a similar problem in Amarok, I cannot stop the streaming recording, like I can with Streamtuner2 by clicking the record button again, or closing the pop-up window, or in Amarok's case, by clicking the "stop recording" which does not stop "streamripper" in Amarok.
I was wondering in ST2, if you could just call the sub-routine to click the record button again, or add something to issue the command "pkill streamripper". I would also like to know how you accomplish this, if you do not mind.
After updating today, like I said in my previous post and saving everything in the "Add" section, my "init.py" in the "/plugins" folder was zero bytes, so I extracted that file from the installation ".deb" file and copied that back into the "/plugins" folder.
I help out in the Linux Mint forums as user "phd21". I really like this Streamtuner2 program since it was re-written, and I would like to tell the people there how to install and use it. So, I have some questions and some suggestions, and I hope you don't mind me asking.
-Can you search for stations? I noticed what looks like a very small search box at the top, but it does not seem to do anything? It would be nice if it did and it was larger.
Any Tips that you might have would be welcome.
Thanks again for all your help.
Best regards to you and yours,
Phil
Last edit: phd21 2015-11-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dunno if you've seen the mail,
so here's a repost:
You can try to configure audio players in the settings dialog
with something like:
"amarok %xspf"
That'll convert any m3u/pls files before they're passed to
Amarok or VLC.
Not all players accept any variation of playlist types. Both
Amarok and VLC are pretty solid in that regard however. Some
sites may block a few players however.
The automatic playlist collection is a feature entirely implemented
in Amarok. Not a specific gimmick of ST2 :)
Yes, I just patched it to work. Barely. There was support
for timeouts previously. But the new action module does not
permit to pass a custom time range command-line flag.
If it's going to be reimplemented, it would only work with
streamripper, not fIcy/fPls for example. So it's probably
going to become a config option.
There was [x]STOP button formerly in ST2. It was meant
to cancel recording. But I never got around to implement
it. And mostly I'm just closing the xterm where streamripper
was active.
pkill streamripper would suffice of course, so I might
add another plugin for that.
It's just a bit difficult to control externally-run processes
(like streamripper in xterm) from Python. Recording is more
or less an afterthought in ST2, which is primarily about
fetching stream lists, and letting audio apps handle any
playback/recording minutae.
Your $HOME/.config/streamtuner2/plugins/init.py is
always supposed to be 0 bytes. It's just a placeholder.
Simply delete it. It just helps Python to discover the
module directory.
If you can relay some details, or want to extend some
documentation, that would be great. The current manual
is a bit terse at details, and I'm not that great in
Engrish et al^^
The small station search box atop is just for highlighting
stuff in the current view.
There's a proper search function with Ctrl+F. It can either
do cache searches (fast), or live server searches (slower,
and only works for a few channels). Mostly using it for
Youtube really.
G,
mario
Btw, I've just uploaded another fix for the timer
plugin.
While it could be updated per [Add] → Refresh again,
it also requires updating action.py beforehand.
I think your English is very good. What is your native language? I think your profile here shows you are in Germany.
Thank you again for your prompt replies and your work on this. I appreciate it and I'm sure others will too. I did not have access to the internet for the past couple days, or I would have replied sooner.
I just downloaded the "action.py" file, but there was not a new link to the updated "timer.py" file. So, I used the last link in previous post here and downloaded that as well, but the date was not within the past few days? I put the "action.py" file into "/usr/share/streamtuner2/action.py" and I just noticed that "timer.py" is in two places, not just the "/home/phil/.config/streamtuner2/plugins/timer.py" folder but also in the "/usr/share/streamtuner2/channels/timer.py" folder. Do both folders need to have the updated "timer.py" file copied into them? I copied the "timer.py" into both places anyway. Would the update function in the "Settings", "add" tab, "refresh", update both the "Action.py" and the "timer.py" files properly, or do you have to manually copy the files into the appropriate folders?
I am going to test this now, and I will report back my findings.
I appreciate the other information you provided as well. I think it would be good to have a "stop recording" button, so if you can implement that with a plug-in or otherwise, that would be great. There a people from all over the world using Linux and Linux Mint, and they are from all over the world even though at this moment they could be somewhere else, so having a streaming application that can stream stations, like music and news, from everywhere, like ST2, is really nice. And, because the time zones are so different, and because you cannot always be at your computer, being able to set streaming recordings by date and time, etc.... is super convenient.
I really like this program. You have done a great job on this. Thank you.
During a testing phase of a program(s), or any of its functions, I find that it is sometimes useful to use regular email, rather than fill up the forum's postings with all that detail that can change rapidly and frequently. I have a regular email address that I could provide you, but I did not see a way to send a Private Message, or an E-Mail message, to you in this forum where I could give you my email address. I did not want to put my email address openly in this forum.
Best regards to you and yours,
Phil
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Everyone,
I was really happy to see that this program was being maintained and updated. Wow, really nice update - very impressed. I am using Linux Mint KDE 17.1 and the one in the repos was old and did not work. I found this by accident, and glad I did.
Everything seems to be working except the "timer" for recording. I have the program running, but it will not start recording automatically at the time specified, ex: "Sun 04:00-04:21 record". I was wondering if dates could be used as well as the generic weekdays, can the day(s) be left off for recording the same time everyday, or do you have to specify each day? I would really like to get this working.
And, how do I add my own custom station urls?
Thank you,
Last edit: phd21 2015-11-08
Hi,
The
timer
plugin depends on the Pythonkronos
module. For testing please try to startstreamtuner2 -D
and watch out for error messages regarding either. May not work with Python3 at all. (Though I tested it with Gnome-based Ubuntu/Mint.)Also I just checked; and it didn't copy the
stream url
field along when bookmarking a timer.It's also somewhat picky with the time specifiers.
kronos
does allow more complex time ranges IIRC. But the ST2timer
module extracts only a subset of fields, so therecord
/play
suffix can be detected.Honestly I hadn't used it for a while, else I'd have externalized the whole recording functionality to
cron
as planned.Adding new stations kind of works, but it's a workaround. Just open an existing station per Station→Edit and use [copy/new], then update title and url.
We could have a proper Station→New function for that, but I didn't want to clutter the menu too much.
BR.
Oh, I just got an error message with extra logging enabled:
[ERR] queuing error global name 'act' is not defined
So it's perhaps really broken. (Though that's just my test version.)
Last edit: Mario Salzer 2015-11-08
Found the problem. The actual playback/recording triggers didn't pass all parameters correctly. There's a fixed version in:
http://fossil.include-once.org/streamtuner2/artifact/6a46d248b98a279b
Though you can probably update the module just per Config → 📦 Add → Refresh → Install "timer".
I could probably add an option to specify "all", "any" an asterisk "*" for all weekdays. But I'm not sure if specific dates can be used with the task scheduler.
Hi Mario Salzer,
Thank you, I really appreciate you responding so quickly.
"timer plugin depends on the Python kronos module". I have python2 and python3 installed and most everything related to those. I could not find any reference in the Software Manager or Synaptic Package Manager (SPM) in my system regarding this "kronos" module? Could it be part of another python module? How could I verify, check, to see if that is installed, and or functioning properly?
I download your updates to the "timer.py" file (Thanks again). I checked my "/home/phil/.config/streamtuner2/plugins/" folder and it was empty before, except maybe for the "init.py". I have not had a chance yet to test the "timer", but I will. I did not manually put ht e"timer.py" file into the "/plugins" folder because I wanted to try the "Add->Refresh" option.
In my StreamTuner2, I do not have "Config → 📦 Add → Refresh → Install "timer". I have and went through the "Edit", "Properties", "Add" tab, then clicked "Refresh", then I clicked "save" on everything, including "Recording Timer". I then went to check the contents of the "plugins" folder and there are now some Python files in there including "timer.py", and "timer.pyc". What is the "timer.pyc"? Is that a compiled version? Below I have also included the results of starting "streamtuner2 -D" before any updates, and after the updates, for you to review.
I just tried "StreamTuner2", just to play various streaming stations, which all that I tried before worked, including those from yesterday. But, now some station categories, sections, do not seem to be working now, TuneIn, Surf Music-Florida, Live365 just doesn't show anyting active. Perhaps I should not have clicked "save" to everything in the "Edit (config)--> Add" options?
In the "tunein" section, under "local" stations, I now get an error that did not happen yesterday? I am using "smplayer" to play the stations.
Mplayer/MPV has finsihed unexpectedly. Exit code2
streamtuner2 -D
11-09-2015, before runnning any updates through the "Edit", "Properties", "Add", "Refresh"...
11-09-2015 03:15pm eastern us, after updating. "Edit", "properties", "Add", "Refresh", amd clicked "save" on everything.
streamtuner2 -D
Best regards to you and yours,
Phil
Hi Mario,
Okay, I have been testing Streamtuner2.
Here is what I found out.
"requires a plug-in uri text decoder, & can't find the plugin, stations show up as, 'tune.ashx' "?
I liked a lot that ST2 updated Amarok's playlist, pretty cool. Any of the other type of streams, used VLC and worked. I understand that streaming stations change formats and such, so I do not expect all of them to work.
I have a similar problem in Amarok, I cannot stop the streaming recording, like I can with Streamtuner2 by clicking the record button again, or closing the pop-up window, or in Amarok's case, by clicking the "stop recording" which does not stop "streamripper" in Amarok.
I was wondering in ST2, if you could just call the sub-routine to click the record button again, or add something to issue the command "pkill streamripper". I would also like to know how you accomplish this, if you do not mind.
After updating today, like I said in my previous post and saving everything in the "Add" section, my "init.py" in the "/plugins" folder was zero bytes, so I extracted that file from the installation ".deb" file and copied that back into the "/plugins" folder.
I help out in the Linux Mint forums as user "phd21". I really like this Streamtuner2 program since it was re-written, and I would like to tell the people there how to install and use it. So, I have some questions and some suggestions, and I hope you don't mind me asking.
-Can you search for stations? I noticed what looks like a very small search box at the top, but it does not seem to do anything? It would be nice if it did and it was larger.
Thanks again for all your help.
Best regards to you and yours,
Phil
Last edit: phd21 2015-11-10
Hey Phil,
Dunno if you've seen the mail,
so here's a repost:
You can try to configure audio players in the settings dialog
with something like:
"amarok %xspf"
That'll convert any m3u/pls files before they're passed to
Amarok or VLC.
Not all players accept any variation of playlist types. Both
Amarok and VLC are pretty solid in that regard however. Some
sites may block a few players however.
The automatic playlist collection is a feature entirely implemented
in Amarok. Not a specific gimmick of ST2 :)
for timeouts previously. But the new action module does not
permit to pass a custom time range command-line flag.
If it's going to be reimplemented, it would only work with
streamripper, not fIcy/fPls for example. So it's probably
going to become a config option.
There was [x]STOP button formerly in ST2. It was meant
to cancel recording. But I never got around to implement
it. And mostly I'm just closing the xterm where streamripper
was active.
pkill streamripper
would suffice of course, so I mightadd another plugin for that.
It's just a bit difficult to control externally-run processes
(like streamripper in xterm) from Python. Recording is more
or less an afterthought in ST2, which is primarily about
fetching stream lists, and letting audio apps handle any
playback/recording minutae.
Your $HOME/.config/streamtuner2/plugins/init.py is
always supposed to be 0 bytes. It's just a placeholder.
Simply delete it. It just helps Python to discover the
module directory.
If you can relay some details, or want to extend some
documentation, that would be great. The current manual
is a bit terse at details, and I'm not that great in
Engrish et al^^
The small station search box atop is just for highlighting
stuff in the current view.
There's a proper search function with Ctrl+F. It can either
do cache searches (fast), or live server searches (slower,
and only works for a few channels). Mostly using it for
Youtube really.
G,
mario
Btw, I've just uploaded another fix for the
timer
plugin.
While it could be updated per [Add] → Refresh again,
it also requires updating
action.py
beforehand.http://fossil.include-once.org/streamtuner2/raw/action.py?name=96185346f2a22d11d91c85e003d124d8a2248425
Which now passes the duration flags for streamripper
somewhat more reliably.
Hi Mario,
I think your English is very good. What is your native language? I think your profile here shows you are in Germany.
Thank you again for your prompt replies and your work on this. I appreciate it and I'm sure others will too. I did not have access to the internet for the past couple days, or I would have replied sooner.
I just downloaded the "action.py" file, but there was not a new link to the updated "timer.py" file. So, I used the last link in previous post here and downloaded that as well, but the date was not within the past few days? I put the "action.py" file into "/usr/share/streamtuner2/action.py" and I just noticed that "timer.py" is in two places, not just the "/home/phil/.config/streamtuner2/plugins/timer.py" folder but also in the "/usr/share/streamtuner2/channels/timer.py" folder. Do both folders need to have the updated "timer.py" file copied into them? I copied the "timer.py" into both places anyway. Would the update function in the "Settings", "add" tab, "refresh", update both the "Action.py" and the "timer.py" files properly, or do you have to manually copy the files into the appropriate folders?
I also checked the http://fossil.include-once.org/streamtuner2/index and it looks as though "st2.py" was updated recently, do I need that as well?
I am going to test this now, and I will report back my findings.
I appreciate the other information you provided as well. I think it would be good to have a "stop recording" button, so if you can implement that with a plug-in or otherwise, that would be great. There a people from all over the world using Linux and Linux Mint, and they are from all over the world even though at this moment they could be somewhere else, so having a streaming application that can stream stations, like music and news, from everywhere, like ST2, is really nice. And, because the time zones are so different, and because you cannot always be at your computer, being able to set streaming recordings by date and time, etc.... is super convenient.
I really like this program. You have done a great job on this. Thank you.
During a testing phase of a program(s), or any of its functions, I find that it is sometimes useful to use regular email, rather than fill up the forum's postings with all that detail that can change rapidly and frequently. I have a regular email address that I could provide you, but I did not see a way to send a Private Message, or an E-Mail message, to you in this forum where I could give you my email address. I did not want to put my email address openly in this forum.
Best regards to you and yours,
Phil