Forum Activity for @popradio-stockholm

kissntel
@popradio-stockholm
06/28/23 03:38:41AM
12 posts

update stream count by 1 seem impossible


Jamroom Developers

Hello Michael,
getting correct song and artist is what im been trying to do for such long time.
Brian change the _update function to:
------
function view_jrShoutcastPlayer_update($_post, $_user, $_conf)
{
if (!isset($_post['song']) || strlen($_post['song']) == 0) {
return jrCore_json_response(array('error' => 'invalid song title'));
}
if (!isset($_post['profile_name'])) {
return jrCore_json_response(array('error' => 'invalid profile name'));
}
// Get all audio files that are part of this album
$_sp = array(
'search' => array(

"audio_title = {$_post['song']}",
"profile_name = {$_post['profile_name']}",

// "audio_artist = {$_post['profile_name']}"
// "_item_id = 3" - use by brian for testing

),
'return_item_id_only' => true,
'exclude_jrUser_keys' => true,
'exclude_jrProfile_quota_keys' => true,
'order_by' => false,
'limit' => 1
);
$_rt = jrCore_db_search_items('jrAudio', $_sp);
if (isset($_rt) && is_array($_rt)) {
jrCore_db_increment_key('jrAudio', reset($_rt), 'audio_file_stream_count', 1, true);

return jrCore_json_response(array('success' => 1));
}
return jrCore_json_response(array('error' => 'update failed'));
}
------
I noticed the reset($_rt) in the increment line... ???
However, that didn't work so I will try the changes you suggest.
The column that show the artist in the jr_jraudio_item_key table are
audio_artist i.e Billy Joel
audio_file_artist i.e Billy Joel
.... shows the song in the table are
audio_file_title i e Uptown girl
audio_title i.e Uptown girl

audio_title_url shows Uptown-girl
profile_url is not present in that table.

I ´ll inform you when tested the code...
Thank you // Jacob
kissntel
@popradio-stockholm
06/27/23 02:00:46AM
12 posts

update stream count by 1 seem impossible


Jamroom Developers

Thank you,
I think the Shoutcastplayer is the main streamingsite, popupplayer includes the same but in different design. I wonders if that "invalid song title" shows on every song?
I noticed that all spaces (%20) is not present in the attached images but in the link:
https://popradio.se/ShoutcastPlayer/update?audio_title=The%20World%20s%20Greatest&profile_name=R.%20Kelly&_=1687840891592 .... became "TheWorldGreatest... " R.%20Kelly became RKelly. What happens with the dot?

Maybe that is correct but somehow strange...
Call Itunes for the Covers, but seems like it look only for artist. Most of the times it shows like random song cover but from correct artist.
MyBroadcast program have an output URL
https://popradiostream.se/admin.cgi?pass=xxxxxxxx&sid=1&mode=updinfo&dj=%u&artist=%a&songtitle=%t&urlcover=%U1&temp=%p&currentlisteners=%l
where %U1 is the url link to the correct album cover.
I will somehow try to implement this url in shoutcastplayer. Perhaps can use the artist and title from this as well instead of catching from the stream??
// Jacob
updated by @popradio-stockholm: 06/27/23 02:13:38AM
kissntel
@popradio-stockholm
06/26/23 01:28:17AM
12 posts

update stream count by 1 seem impossible


Jamroom Developers

Hello,
as now I want it to work from the Home (index) (url= https://popradio.se) page as well as from the Radio ( https://popradio.se/radio) page which now shows with this link :
{jrCore_include template="player.tpl" module="jrShoutcastPlayer"}
I believe this link above is the right place for the player to work and I can put it wherever I want it on the site.
The stream itself comes from another server https://popradiostream.se. No port is needed to tell here.
This is the Shoutcast broadcast server.
The music plays, the albumcover shows, we got the title and artist from the stream but cant put this in the database as with the stream count. The main idea was to add (create) the artist and title in the database if not exist. The actual mp3 file I will add at a later point if needed (with JrAudioImport Module or manually).
Thank you
kissntel
@popradio-stockholm
06/25/23 01:32:24PM
12 posts

update stream count by 1 seem impossible


Jamroom Developers

hello, thank you for quick response.
When calling https://popradio.se/sc_player/update after changed the _item_id to 3
results in "The Page Not Exist".
popradio.se/radio/update results in the normal radiosite where I listens to the stream.
Cant see nowhere that it works. Have no idea how to show things in a view mode?

--What function calls the "update" view to trigger the stream count?--
Am I suppused to know that? Maybe you mean the AdvancedChart??
I actually dont understand what you mean.
// Jacob
kissntel
@popradio-stockholm
06/24/23 03:20:56PM
12 posts

update stream count by 1 seem impossible


Jamroom Developers

OK, thanks for info although I ve never changed those settings.
All my problems remains, and happens when Shoutcastplayer module is activated.
When Shoutcastplayer is disabled then SiteBuilder, audio upload and more works as it should.
No difference with Template Names In Source on or off.?
I believe the Shoutcast module not connects with database at all using jrcore_db functions.??
I ask again, is there a way to debug, log or anything that shows what is going on, to see if the code catch the _item_id?
1. In feb 2022 I asked Jamroom if the can help med building SHoutcast stream module.
2.Answer was yes
3. I Payed
4. After many month (with many reminders from me) I got a module that doesnt work, as well as effect other modules not work properly either.
5. The developer disapperad and stop answer my mails...
6. Over a year now I ve been trying to have the code connect to database, using AI and all sort of inputs..
I cant understand how it could be so hard to update an item in a database.
kissntel
@popradio-stockholm
06/21/23 02:08:33PM
12 posts

update stream count by 1 seem impossible


Jamroom Developers

@michael
Thank you for input. I cant tell if the "template name in source" effects modules to work or not??? However, it is off now,
Your attached jpg telling that audio_file_stream_count is working correctly?
Well, in the jr_jraudio_item_key table, the audio_file_stream_count value is not increasing or changing when listen to a song through the shoutcast stream as well as not showing in the charts...
What do you actually mean by saying it works correct?
// Jacob
kissntel
@popradio-stockholm
06/20/23 03:32:24PM
12 posts

update stream count by 1 seem impossible


Jamroom Developers

here are two things showing on almost every site on my jamroom..
1.DevTools failed to load source map: Could not load content for https://popradio.se/data/cache/jrMediaPro/bootstrap.min.css.map: Unexpected token '<', "


<!-- BEGIN"... is not valid JSON

2. (index):5265 Uncaught ReferenceError: gdprAllowPersonalizedAds is not defined
at (index):5265:1
this note changes depend on what site I am at.

I havent change any javascript code. The problem with SiteBuilder and uploading files started when Shoutcastplayer module was installed. The problems most likely are within this module.
Still no counts shows from the livestream.
can i debug somehow to find out if it catch the _item_id correct?
kissntel
@popradio-stockholm
06/18/23 07:53:54AM
12 posts

update stream count by 1 seem impossible


Jamroom Developers

The same with SiteBuilder. Doesn t work properly while Shoutcast module is active??
Can not figure out how they are connected...
kissntel
@popradio-stockholm
06/18/23 03:21:11AM
12 posts

update stream count by 1 seem impossible


Jamroom Developers

Thank you. I been testing through the night but can't se any counts increase in the audio_file_stream_counts when listening to live stream. I believe (and it´s my wish) it will shows in the charts display.
It worked for you (_item_id =3) , how did you actually test that?
I still got the feeling that Shoutcast won't connect to the audio module?
Cant be far away now from working as it should.
Another thing I noticed. I cant upload audiofiles on a profile when jrShoutcastplayer module is active.
But available when I turn it off?? That is strange...
Thanks again for your help. // J
kissntel
@popradio-stockholm
06/16/23 01:35:26AM
12 posts

update stream count by 1 seem impossible


Jamroom Developers

Here are the modules that wont registered , jrShoutcastPlayer and jrAudioImport.
SHoutcastplayer causes coredump scenes now and then related to id3v2 and ffmpeg.
After my isp turn off coredump I can suddenly do a systemcheck and find out there is error according to this...
Try to turn off everything with conversions and id3 tags and hope that stops the coredump.
However the main issue from above remains.
updated by @popradio-stockholm: 06/17/23 07:20:41AM
1