Forum Activity for @michael

michael
@michael
08/01/23 08:40:32PM
7,789 posts

select all check box


Using Jamroom

There is not.

There is a "Reset System" button at MODULES -> DEVELOPER -> DEVELOPER TOOLS -> TOOLS -> RESET SYSTEM.

which will wipe the entire system.

Or you could go into the developer tools -> database admin and selectively delete the profile ids you're after from the
jr_jrprofile_item
jr_jrprofile_item_key

tables which holds all the profile info. Be careful in there though there is no restore option if you make a mistake and its easy to destroy your system.

The third option would be to build a module to select and delete the profiles you're after.
michael
@michael
07/28/23 10:28:20PM
7,789 posts

Market place


Using Jamroom

You've got a couple of different accounts on jamroom.net. Make sure you are using the key in your site from the account that purchased the modules.

got to the ACCOUNT -> ACCOUNT SETTINGS button on the top of this page, then to the JAMROOM SITES tab to see the key that should be in use.
michael
@michael
06/28/23 06:03:54AM
7,789 posts

update stream count by 1 seem impossible


Jamroom Developers

send the admin login deteails to support at jamroom dot net and I'll login and see if there's a cleaner data value we can use. (tomorrow, late here.)
michael
@michael
06/27/23 06:03:30PM
7,789 posts

update stream count by 1 seem impossible


Jamroom Developers

If you can get that search "// Get all audio files that are part of this album" lined up with the song that needs incrementing then incrementing will happen. Right now your search is not finding the song to increment.
michael
@michael
06/27/23 05:56:22PM
7,789 posts

update stream count by 1 seem impossible


Jamroom Developers

What Im seeing is that whenever the shoutcast stream changes from one song to another many thing happen, one of which is the /update url is called. That just happened and this URL was generated:
https://popradio.se/ShoutcastPlayer/update?audio_title=Trap%20Queen&profile_name=Fetty%20Wap&_=1687913313586

Even changing that to the correct update variable the update still fails:
https://popradio.se/ShoutcastPlayer/update?song=Trap%20Queen&profile_name=Fetty%20Wap&_=1687913313586

The reason is that the search for that song is not found or the profile is not found. Do you have a profile on your site for "Fetty Wap"? and does that profile have a song in their audio list called "Trap Queen".

It could be formatting, and probably would be best to use cleaner variables to search on like the audio_title_url if that exists and the profile_url if that exists.
michael
@michael
06/27/23 05:36:55PM
7,789 posts

update stream count by 1 seem impossible


Jamroom Developers

The URL that should be being used in the /update currently is:
/update?audio_title=
but that should be
/update?song=

--edit--
Alternatively if you don't know what is causing that url to be like that then changing the _update() function to allow ?audio_title works too, use this function:
PREVIOUSLY
function view_jrShoutcastPlayer_update($_post, $_user, $_conf) {
    jrCore_validate_location_url();
    if (!isset($_post['song']) || strlen($_post['song']) == 0) {
        return jrCore_json_response(array('error' => 'invalid song title'));
    }
    if (!isset($_post['profile_name']) || strlen($_post['song']) == 0) {
        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']}",
		 // jake put in kod
         "audio_artist = {$_post['profile_name']}",
		  // SLUT JAKE


        ),
        'return_keys'                  => array('_item_id'),
        'exclude_jrUser_keys'          => true,
        'exclude_jrProfile_quota_keys' => true,
        'order_by'                     => array('_created' => 'numerical_asc'),
        'limit'                        => 1
    );
    $_rt = jrCore_db_search_items('jrAudio', $_sp);
    if (isset($_rt) && is_array($_rt)) {
        jrCore_db_increment_key('jrAudio',$_rt['_items'][0]['_item_id'],'audio_file_stream_count',1,true);
        return jrCore_json_response(array('success' => 1));
    }
    return jrCore_json_response(array('error' => 'update failed'));
}
CHANGE IT TO:
function view_jrShoutcastPlayer_update($_post, $_user, $_conf)
{ jrCore_validate_location_url(); $title = ''; if (!empty($_post['song'])) { $title = $_post['song']; } elseif (!empty($_post['audio_title'])) { $title = $_post['audio_title']; } if (!empty($title)) { 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 = {$title}", "profile_name = {$_post['profile_name']}", // jake put in kod "audio_artist = {$_post['profile_name']}", // SLUT JAKE ), 'return_keys' => array('_item_id'), 'exclude_jrUser_keys' => true, 'exclude_jrProfile_quota_keys' => true, 'order_by' => array('_created' => 'numerical_asc'), 'limit' => 1 ); $_rt = jrCore_db_search_items('jrAudio', $_sp); if (isset($_rt) && is_array($_rt)) { jrCore_db_increment_key('jrAudio', $_rt['_items'][0]['_item_id'], 'audio_file_stream_count', 1, true); return jrCore_json_response(array('success' => 1)); } return jrCore_json_response(array('error' => 'update failed')); }

updated by @michael: 06/27/23 05:42:06PM
michael
@michael
06/26/23 09:47:12PM
7,789 posts

update stream count by 1 seem impossible


Jamroom Developers

The stand alone 'Pop Up' player is on this url:
https://popradio.se/ShoutcastPlayer/popup

There's a link to it from the /radio page.

From within that page there is a call to /update :
https://popradio.se/ShoutcastPlayer/update?audio_title=The%20World%20s%20Greatest&profile_name=R.%20Kelly&_=1687840891592

That is returning
error: "Invalid Song Title".

That seems like it could be why the incrementing is not happening perhaps.

There's also a lot of GET requests to itunes going on which seems unusual.

--edit--
The GET requests are to itunes to get the album covers.
1.jpg 1.jpg - 20KB

updated by @michael: 06/26/23 09:52:33PM
michael
@michael
06/25/23 03:13:06PM
7,789 posts

update stream count by 1 seem impossible


Jamroom Developers

Need to get some feedback from Nate on here, he's the one that understands whats supposed to happen. @nate
michael
@michael
06/22/23 11:00:52PM
7,789 posts

update stream count by 1 seem impossible


Jamroom Developers

oh yeah, if you have that turned on it will most likely break many things. it inject the name of the template into the source code so you can locate where a section of code is. It does not care if that breaks the code or not.

The way it does it is with HTML comments which look like this:
<!-- BEGIN template_name.tpl -->
That will definitely break a json file.
michael
@michael
06/20/23 05:48:20PM
7,789 posts

update stream count by 1 seem impossible


Jamroom Developers

looks like you have the "Template Names In Source" turned on.
site.jpg site.jpg - 101KB
  21