Library and time travel radio not working?

Server Version#: 1.13.9.5439
Player Version#: 5.5.1 ios

Is anyone else having problems with time travel and library radios not providing the proper playlist?

I just keep getting the same list of the same set of tracks, no randomization. Both radios. Same set of tracks.

It worked before recently, just this last week.

The random album radio appears to works fine.

edit: I’ve edited the categories to more accurately reflect.

this is a server/database issue and its a problem across multiple clients including PLEXAMP, ios, and android.

this biggest hint is @

Message
LPE: exception generating query for invalid path ‘library://xxx/station/%2Flibrary%2Fsections%2F11%2Fstations%2F1’: Cannot convert data to std::tm.

yes I have been having the same problem.

and I just recreated a new premium library too.

me again, apparently the only one with this problem.

This appears to be the most relevant error I can see in the log.

Oct 26, 2018 21:01:28.994 [0x7f8b2cbf0700] ERROR - LPE: exception generating query for invalid path ‘library://4542ec05-caf3-4b56-9a95-c3de2b06396c/station/%2Flibrary%2Fsections%2F11%2Fstations%2F2’: Cannot convert data to std::tm.

Oct 26, 2018 21:01:25.095 [0x7f8b2ebf4700] DEBUG - Request: [192.168.168.197:63773 (Allowed Network)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=1&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (15 live) TLS GZIP Signed-in Token (TeknoJunky)
Oct 26, 2018 21:01:25.095 [0x7f8b2ebf4700] DEBUG - Beginning read from two-way stream.
Oct 26, 2018 21:01:26.137 [0x7f8b47bfe700] DEBUG - Auth: authenticated user 1 as TeknoJunky
Oct 26, 2018 21:01:26.137 [0x7f8b2cbf0700] DEBUG - Request: [192.168.168.190:53492 (Allowed Network)] POST /playQueues?continuous=0&recursive=0&shuffle=0&type=audio&uri=library%3A%2F%2F4542ec05-caf3-4b56-9a95-c3de2b06396c%2Fstation%2F%252Flibrary%252Fsections%252F11%252Fstations%252F2 (15 live) TLS GZIP Signed-in Token (TeknoJunky)
Oct 26, 2018 21:01:26.140 [0x7f8b2cbf0700] DEBUG - PlayQueue: 0 generated IDs compressed down to a 2 byte blob.
Oct 26, 2018 21:01:28.994 [0x7f8b2cbf0700] ERROR - LPE: exception generating query for invalid path 'library://4542ec05-caf3-4b56-9a95-c3de2b06396c/station/%2Flibrary%2Fsections%2F11%2Fstations%2F2': Cannot convert data to std::tm.
Oct 26, 2018 21:01:28.996 [0x7f8b2cbf0700] DEBUG - PlayQueue: Start index: 0 End index: 99 Count: 120052
Oct 26, 2018 21:01:29.153 [0x7f8b2cbf0700] DEBUG - PlayQueue: 120052 generated IDs compressed down to a 209274 byte blob.
Oct 26, 2018 21:01:29.448 [0x7f8b2cbf0700] DEBUG - PlayQueue: Added 100 items in 0.0 sec.

this is on a brand new premium music library (original premium music library deleted before adding new one).

I do not know if this was working at any point, before or after I finished the whole music scan, or before/after I ran an itunes import.

another data point.

switching to a different home user, the library and time travel radio work normally.

so something is botched on the admin profile for the radios in the database.

I just have no way narrow down what specifically.

I used to have an issue with the radio stations on Plex for Android TV which crashed the app. In my case, disabling the new audio player in the client settings fixed things.
I’ll need to check if this is a known bug/problem or just bad luck with my Sony TV.

thanks for checking, be advised that my particular issue happens across multiple client types (ios/androidtv/plexamp) and seems to be profile specific in the server/db.

Hmm, that seems to imply that there’s something wrong/corrupted in the release date of one or more albums. If you send me your database, I might be able to figure it out.

ok wow. Well, its rather large (~1gig db). I can zip it up and see how well it will compress and find some place to link it.

Won’t be until later tonight though.

thanks I do appreciate the offer.

Hi, sent the link in PM.

I have just discovered that apparently I have some invalid dates in the DATE PLAYED field.

Within plex web, I had added the date added and date played columns.

I sorted the added column and was able to verify that olded and newest dates appeared to valid (previously I had invalid dates with 2036).

I sorted the date played column and was unable to find where played date met with unplayed.

I received a ton of these errors in the log while plexweb was trying to load this.

Oct 30, 2018 08:43:58.977 [0x7fa44efff700] DEBUG - Setting container serialization range to [124699, 124883] (total=-1)
Oct 30, 2018 08:43:59.018 [0x7fa44efff700] ERROR - Soci Exception handled: Cannot convert data to std::tm.
Oct 30, 2018 08:43:59.019 [0x7fa4683fe700] DEBUG - Completed: [192.168.168.1:50793] 500 GET /library/sections/11/all?type=10&sort=lastViewedAt&includeRelated=1&includeCollections=1 (13 live) TLS GZIP Page 124699-124883 44ms 478 bytes (pipelined: 1247)
Oct 30, 2018 08:43:59.067 [0x7fa468bff700] DEBUG - Request came in with unrecognized domain / IP 'x.x.x.x' in header Host; treating as non-local
Oct 30, 2018 08:43:59.067 [0x7fa468bff700] DEBUG - Auth: authenticated user 1 as TeknoJunky
Oct 30, 2018 08:43:59.067 [0x7fa450ff7700] DEBUG - Request: [192.168.168.1:50793 (Allowed Network)] GET /library/sections/11/all?type=10&sort=lastViewedAt&includeRelated=1&includeCollections=1 (12 live) TLS Page 124699-124883 GZIP Signed-in Token (TeknoJunky)
Oct 30, 2018 08:43:59.069 [0x7fa450ff7700] DEBUG - Setting container serialization range to [124699, 124883] (total=-1)

so somewhere I have an unknown amount of tracks with an invalid PLAYED_DATE.

I will start investigating the db later tonight, I won’t be able to work on this for another 10ish hours.

thanks for reading.

@elan Hello, any chance perhaps you or someone else was able to take a look and figure out how to fix the apparent invalid dates ?

Got your message, thanks.

I have been working on trying to figure this out for myself, and while I have not got it working, I have done a lot of trying, and I did manage to isolate a single small album that is having “Soci Exception handled: Cannot convert data to std::tm” errors and will not display the tracklist of the album.

metadata_items;
id 420816, 420817, 420818

but for the life of me, I do not see any invalid dates for these tracks in this table.

id library_section_id parent_id metadata_type guid media_item_count title title_sort original_title studio rating rating_count tagline summary trivia quotes content_rating content_rating_age index absolute_index duration user_thumb_url user_art_url user_banner_url user_music_url user_fields tags_genre tags_collection tags_director tags_writer tags_star originally_available_at available_at expires_at refreshed_at year added_at created_at updated_at deleted_at tags_country extra_data hash audience_rating changed_at resources_changed_at
420816 11 420815 10 com.plexapp.agents.plexmusic://gracenote/track/106062914-FF56DEDBF3D070AFFB51C512BFACC107/106062915-BF2F620786D0EF3B5952337E3ECFD39A?lang=en 1 Thou Art That Thou Art That By the End of Tonight 4300 1 1 2018-10-27 10:33:18 2008-05-02 15:59:04 2018-10-17 22:05:51 2018-10-27 10:33:18 ma%3AchapterSource= a9de0721db45c0566a9b828015a74568ff1d0234 21991982 20420998
420817 11 420815 10 com.plexapp.agents.plexmusic://gracenote/track/106062914-FF56DEDBF3D070AFFB51C512BFACC107/106062916-46BAD87D151C33CE9A5FCF3E896ECDA1?lang=en 1 What Must and Shall Be What Must and Shall Be By the End of Tonight 3859 2 1 2018-10-27 10:33:18 2008-05-02 15:59:04 2018-03-27 18:59:09 2018-10-27 10:33:18 ma%3AchapterSource= 987047234018bf5f433e9d0609f727e82df8c139 21991983 20421000
420818 11 420815 10 com.plexapp.agents.plexmusic://gracenote/track/106062914-FF56DEDBF3D070AFFB51C512BFACC107/106062917-4C9D8D327643F1127168D81C05C3A659?lang=en 1 JQ10 JQ10 By the End of Tonight 3167 3 1 2018-10-27 10:33:18 2008-05-02 15:59:04 2018-10-17 22:05:51 2018-10-27 10:33:18 ma%3AchapterSource= d9af91d38916c2114a19ee1d6b21e560cf6a9911 21991985 20421001

here is these tracks itunes xml

        <dict>   
            <key>Track ID</key><integer>45613</integer>
            <key>Name</key><string>Thou Art That</string>
            <key>Artist</key><string>By the End of Tonight</string>
            <key>Album Artist</key><string>By the End of Tonight</string>
            <key>Album</key><string>My Mom Caught Me in My Room Beat Boxin'</string>
            <key>Kind</key><string>MPEG audio file</string>
            <key>Size</key><integer>9146368</integer>
            <key>Genre</key><string>Math Rock</string>
            <key>Total Time</key><integer>340349</integer>
            <key>Track Number</key><integer>1</integer>
            <key>Rating</key><integer>50</integer>
            <key>Year</key><integer>2006</integer>
            <key>Date Modified</key><date>2009-01-17T13:22:01</date>
            <key>Date Added</key><date>2008-05-02T20:59:04</date>

            <key>Bit Rate</key><integer>214</integer>
            <key>Sample Rate</key><integer>44100</integer>
            <key>Track Type</key><string>File</string>
            <key>File Folder Count</key><integer>-1</integer>
            <key>Library Folder Count</key><integer>-1</integer>
            <key>BPM</key><string>-1</string>
            <key>Location</key><string>file://localhost/data/media/audio/MP3/B/By%20the%20End%20of%20Tonight/2006%20-%20My%20Mom%20Caught%20Me%20in%20My%20Room%20Beat%20Boxin'%20%5BMP3%5D/01%20-%20By%20the%20End%20of%20Tonight%20-%20Thou%20Art%20That.mp3</string>
        </dict>
        <key>45614</key>
        <dict>   
            <key>Track ID</key><integer>45614</integer>
            <key>Name</key><string>What Must and Shall Be</string>
            <key>Artist</key><string>By the End of Tonight</string>
            <key>Album Artist</key><string>By the End of Tonight</string>
            <key>Album</key><string>My Mom Caught Me in My Room Beat Boxin'</string>
            <key>Kind</key><string>MPEG audio file</string>
            <key>Size</key><integer>8820736</integer>
            <key>Genre</key><string>Math Rock</string>
            <key>Total Time</key><integer>375849</integer>
            <key>Track Number</key><integer>2</integer>
            <key>Play Count</key><integer>2</integer>
            <key>Rating</key><integer>60</integer>
            <key>Year</key><integer>2006</integer>
            <key>Date Modified</key><date>2009-01-17T13:22:02</date>
            <key>Date Added</key><date>2008-05-02T20:59:04</date>
            <key>Play Date UTC</key><date>2010-04-29T04:17:19</date>
            <key>Bit Rate</key><integer>186</integer>
            <key>Sample Rate</key><integer>44100</integer>
            <key>Track Type</key><string>File</string>
            <key>File Folder Count</key><integer>-1</integer>
            <key>Library Folder Count</key><integer>-1</integer>
            <key>BPM</key><string>-1</string>
            <key>Location</key><string>file://localhost/data/media/audio/MP3/B/By%20the%20End%20of%20Tonight/2006%20-%20My%20Mom%20Caught%20Me%20in%20My%20Room%20Beat%20Boxin'%20%5BMP3%5D/02%20-%20By%20the%20End%20of%20Tonight%20-%20What%20Must%20and%20Shall%20Be.mp3</string>
        </dict>
        <key>45615</key>
        <dict>   
            <key>Track ID</key><integer>45615</integer>
            <key>Name</key><string>JQ10</string>
            <key>Artist</key><string>By the End of Tonight</string>
            <key>Album Artist</key><string>By the End of Tonight</string>
            <key>Album</key><string>My Mom Caught Me in My Room Beat Boxin'</string>
            <key>Kind</key><string>MPEG audio file</string>
            <key>Size</key><integer>11360256</integer>
            <key>Genre</key><string>Math Rock</string>
            <key>Total Time</key><integer>442984</integer>
            <key>Track Number</key><integer>3</integer>
            <key>Rating</key><integer>50</integer>
            <key>Year</key><integer>2006</integer>
            <key>Date Modified</key><date>2009-01-17T13:22:02</date>
            <key>Date Added</key><date>2008-05-02T20:59:04</date>

            <key>Bit Rate</key><integer>204</integer>
            <key>Sample Rate</key><integer>44100</integer>
            <key>Track Type</key><string>File</string>
            <key>File Folder Count</key><integer>-1</integer>
            <key>Library Folder Count</key><integer>-1</integer>
            <key>BPM</key><string>-1</string>
            <key>Location</key><string>file://localhost/data/media/audio/MP3/B/By%20the%20End%20of%20Tonight/2006%20-%20My%20Mom%20Caught%20Me%20in%20My%20Room%20Beat%20Boxin'%20%5BMP3%5D/03%20-%20By%20the%20End%20of%20Tonight%20-%20JQ10.mp3</string>
        </dict>

I have also tried a couple different ways to find invalid datetime data in the various columns of data, with no apparent luck.

I don’t know if these queries simply don’t work as expected, or that I have not found the right table/columns, or that there is not any invalid timedate data in the actual database and the time conversion errors are happening outside the database.

queries used to (attempt to) identify invalid timedate data


select count(*) from (SELECT "_rowid_",* FROM "main"."media_items" WHERE datetime("created_at","+0 days") IS NOT datetime("created_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."media_items" WHERE datetime("updated_at","+0 days") IS NOT datetime("updated_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."media_items" WHERE datetime("deleted_at","+0 days") IS NOT datetime("deleted_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."media_items" WHERE datetime("begins_at","+0 days") IS NOT datetime("begins_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."media_items" WHERE datetime("ends_at","+0 days") IS NOT datetime("ends_at"));

select count(*) from (SELECT "_rowid_",* FROM "main"."media_part_settings" WHERE datetime("created_at","+0 days") IS NOT datetime("created_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."media_part_settings" WHERE datetime("updated_at","+0 days") IS NOT datetime("updated_at"));


select count(*) from (SELECT "_rowid_",* FROM "main"."media_parts" WHERE datetime("created_at","+0 days") IS NOT datetime("created_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."media_parts" WHERE datetime("updated_at","+0 days") IS NOT datetime("updated_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."media_parts" WHERE datetime("deleted_at","+0 days") IS NOT datetime("deleted_at"));


select count(*) from (SELECT "_rowid_",* FROM "main"."media_streams" WHERE datetime("created_at","+0 days") IS NOT datetime("created_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."media_streams" WHERE datetime("updated_at","+0 days") IS NOT datetime("updated_at"));



select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_item_clusters" WHERE datetime("starts_at","+0 days") IS NOT datetime("starts_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_item_clusters" WHERE datetime("ends_at","+0 days") IS NOT datetime("ends_at"));


select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_item_settings" WHERE datetime("last_viewed_at","+0 days") IS NOT datetime("last_viewed_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_item_settings" WHERE datetime("created_at","+0 days") IS NOT datetime("created_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_item_settings" WHERE datetime("updated_at","+0 days") IS NOT datetime("updated_at"));


select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_item_views" WHERE datetime("viewed_at","+0 days") IS NOT datetime("viewed_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_item_views" WHERE datetime("originally_available_at","+0 days") IS NOT datetime("originally_available_at"));


select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime("originally_available_at","+0 days") IS NOT datetime("originally_available_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime("available_at","+0 days") IS NOT datetime("available_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime("expires_at","+0 days") IS NOT datetime("expires_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime("refreshed_at","+0 days") IS NOT datetime("refreshed_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime("added_at","+0 days") IS NOT datetime("added_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime("created_at","+0 days") IS NOT datetime("created_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime("updated_at","+0 days") IS NOT datetime("updated_at"));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime("deleted_at","+0 days") IS NOT datetime("deleted_at"));

---

select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime(julianday("originally_available_at")) != datetime(strftime("originally_available_at")));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime(julianday("available_at")) != datetime(strftime("available_at")));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime(julianday("expires_at")) != datetime(strftime("expires_at")));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime(julianday("refreshed_at")) != datetime(strftime("refreshed_at")));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime(julianday("added_at")) != datetime(strftime("added_at")));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime(julianday("created_at")) != datetime(strftime("created_at")));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime(julianday("updated_at")) != datetime(strftime("updated_at")));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_items" WHERE datetime(julianday("deleted_at")) != datetime(strftime("deleted_at")));



select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_item_settings" WHERE datetime(julianday("last_viewed_at")) != datetime(strftime("last_viewed_at")));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_item_settings" WHERE datetime(julianday("created_at")) != datetime(strftime("created_at")));
select count(*) from (SELECT "_rowid_",* FROM "main"."metadata_item_settings" WHERE datetime(julianday("updated_at")) != datetime(strftime("updated_at")));


One thing that I did find through all my googling is, that your database columns with TYPE: datetime probably should have CHECK constraints put in the schema so that there will be a hard block preventing the addition of any invalid sql timedate data.

CREATE TABLE MyLittleTable (
    MyDate CHECK (date(MyDate,'+0 days') IS MyDate)
);

hope the above is helpful, and again thanks for the help.

I have no idea about the structure of the Plex database, but if you take a look at your table above, the last two columns are also dates. They are just in Unix Epoch format.

If you convert their current values to a readable date format
https://www.epochconverter.com
you’ll find that they contain dates which lie 48 years in the past, when Plex didn’t even exist.

I could be totally wrong here, so compare with albums which don’t cause error messages.

You might just be on to something.

The question then becomes, what are those columns dates supposed to be and/or represent?

because I have ranges that go from

changed_at: 1 then 146148, through 23204199
resources_changed_at: null, then 1 through 23202882

Unless the music was released 48 years ago…

ok, the 3 tracks and associated album records that will not display (id 420815-420818), surrounded by other tracks and albums that do display are below.

in this set of records, the changed_at epoc goes from a
low of 21392077
GMT : Saturday, September 5, 1970 2:14:37 PM
Your time zone : Saturday, September 5, 1970 9:14:37 AM GMT-05:00 DST
Relative : 48 years ago

high of 21991999
GMT : Saturday, September 12, 1970 12:53:19 PM
Your time zone : Saturday, September 12, 1970 7:53:19 AM GMT-05:00 DST
Relative : 48 years ago

none of which makes any logical sense, but since all but 3 of the tracks display correctly and do not give the Cannot convert data to std::tm error, I am still at a loss as to whats wrong with those 3 particular tracks.

id library_section_id parent_id metadata_type guid media_item_count title title_sort original_title studio rating rating_count tagline summary trivia quotes content_rating content_rating_age index absolute_index duration user_thumb_url user_art_url user_banner_url user_music_url user_fields tags_genre tags_collection tags_director tags_writer tags_star originally_available_at available_at expires_at refreshed_at year added_at created_at updated_at deleted_at tags_country extra_data hash audience_rating changed_at resources_changed_at
420810 11 420807 9 com.plexapp.agents.plexmusic://gracenote/album/05E103B006526EF9/106065657-E103B01617E2B8CF824B2487BEC89FB7?lang=en 0 The Gunslinger EP Gunslinger EP Temporary Residence LTD. 1 metadata://posters/com.plexapp.agents.localmedia_61c4a2920b739cfc1ee83fad426227ac5c32954d Math Rock 2006-01-01 00:00:00 2018-10-27 10:33:17 2006 2008-05-02 15:58:59 2018-10-20 20:37:11 2018-10-24 14:58:19 1eff3f903a32e10e263c80e26bd895c5c572643d 21392101 20420988
420811 11 420810 10 com.plexapp.agents.plexmusic://gracenote/track/106065657-E103B01617E2B8CF824B2487BEC89FB7/106065658-882947BFAE08E4E5CFF07E71575AD0C1?lang=en 1 Uncontrollable Like a Teenage Daughter Uncontrollable Like a Teenage Daughter By the End of Tonight 7792 1 1 2018-10-27 10:33:17 2008-05-02 15:58:59 2018-03-27 18:59:09 2018-10-27 10:33:17 ma%3AchapterSource= 2b5570eaedef663419886c82cb313913a1316715 21991978 20420989
420812 11 420810 10 com.plexapp.agents.plexmusic://gracenote/track/106065657-E103B01617E2B8CF824B2487BEC89FB7/106065659-91163206E8D53ACF38DAB4DADF1F47E8?lang=en 1 Death Is the New Life Death Is the New Life By the End of Tonight 9058 2 1 2018-10-27 10:33:17 2008-05-02 15:58:59 2018-10-17 22:05:51 2018-10-27 10:33:17 ma%3AchapterSource= c2f981981a7cd4ab3da3372f7d7f76650377d551 21991979 20420990
420813 11 420810 10 com.plexapp.agents.plexmusic://gracenote/track/106065657-E103B01617E2B8CF824B2487BEC89FB7/106065660-C0892720EF04348B126B40571E4029A2?lang=en 1 West Side Boring West Side Boring By the End of Tonight 7173 3 1 2018-10-27 10:33:17 2008-05-02 15:58:59 2018-03-27 18:59:09 2018-10-27 10:33:17 ma%3AchapterSource= 168cb483f8327d0635bb4e4968026538e067b73d 21991980 20420991
420814 11 420810 10 com.plexapp.agents.plexmusic://gracenote/track/106065657-E103B01617E2B8CF824B2487BEC89FB7/106065661-17BFC107DA8284BCF7119A938BC033C4?lang=en 1 Life Is the Old Death Life Is the Old Death By the End of Tonight 8342 4 1 2018-10-27 10:33:17 2008-05-02 15:59:00 2018-10-17 22:05:51 2018-10-27 10:33:17 ma%3AchapterSource= 380b97d88ef3f7d8e85b723b8cbe18850546201d 21991981 20420993
420815 11 420807 9 com.plexapp.agents.plexmusic://gracenote/album/05FF56DE06526442/106062914-FF56DEDBF3D070AFFB51C512BFACC107?lang=en 0 My Mom Caught Me in My Room Beat Boxin’ My Mom Caught Me in My Room Beat Boxin’ Temporary Residence LTD. 1 metadata://posters/com.plexapp.agents.localmedia_b2bb9b000ce5fcc5247a761df3b50dfbda744fb3 Math Rock 2006-01-01 00:00:00 2018-10-27 10:33:18 2006 2008-05-02 15:59:04 2018-10-20 20:37:16 2018-10-24 14:58:11 d2aa5a07820d3ccf5e316830301f375ee492eae7 21392077 20420997
420816 11 420815 10 com.plexapp.agents.plexmusic://gracenote/track/106062914-FF56DEDBF3D070AFFB51C512BFACC107/106062915-BF2F620786D0EF3B5952337E3ECFD39A?lang=en 1 Thou Art That Thou Art That By the End of Tonight 4300 1 1 2018-10-27 10:33:18 2008-05-02 15:59:04 2018-10-17 22:05:51 2018-10-27 10:33:18 ma%3AchapterSource= a9de0721db45c0566a9b828015a74568ff1d0234 21991982 20420998
420817 11 420815 10 com.plexapp.agents.plexmusic://gracenote/track/106062914-FF56DEDBF3D070AFFB51C512BFACC107/106062916-46BAD87D151C33CE9A5FCF3E896ECDA1?lang=en 1 What Must and Shall Be What Must and Shall Be By the End of Tonight 3859 2 1 2018-10-27 10:33:18 2008-05-02 15:59:04 2018-03-27 18:59:09 2018-10-27 10:33:18 ma%3AchapterSource= 987047234018bf5f433e9d0609f727e82df8c139 21991983 20421000
420818 11 420815 10 com.plexapp.agents.plexmusic://gracenote/track/106062914-FF56DEDBF3D070AFFB51C512BFACC107/106062917-4C9D8D327643F1127168D81C05C3A659?lang=en 1 JQ10 JQ10 By the End of Tonight 3167 3 1 2018-10-27 10:33:18 2008-05-02 15:59:04 2018-10-17 22:05:51 2018-10-27 10:33:18 ma%3AchapterSource= d9af91d38916c2114a19ee1d6b21e560cf6a9911 21991985 20421001
420819 11 420807 9 com.plexapp.agents.plexmusic://gracenote/album/0532C096042E46B6/70141622-32C096081B35E1A66BDC5C803024F472?lang=en 0 A Tribute to Tigers Tribute to Tigers Temporary Residence LTD. 1 metadata://posters/com.plexapp.agents.localmedia_39b5dda41e45a51055f8e8759ba7a27324672960 Math Rock 2005-03-01 00:00:00 2018-10-27 10:33:23 2005 2008-05-02 15:58:46 2018-10-20 20:37:22 2018-10-24 14:58:26 950c778475ee16fdb48b653284cf4a868f07edfd 21392113 20421007
420820 11 420819 10 com.plexapp.agents.plexmusic://gracenote/track/70141622-32C096081B35E1A66BDC5C803024F472/70141623-D0E59C20767FA36E5F819508F8ED6546?lang=en 1 4’s, 5’s, and the Piano That Never Made It Home 4’s, 5’s, and the Piano That Never Made It Home By the End of Tonight 1604 1 1 2018-10-27 10:33:22 2008-05-02 15:58:46 2018-10-17 22:05:51 2018-10-27 10:33:22 ma%3AchapterSource= 422a643216d56380b940fd618b7d0bb3c43f750d 21991999 20421008

edit

for total S&G’s, i performed the following updates on the aforementioned epoc columns, setting the entire music library to 2007, January 1 1167609600

update “main”.“metadata_items” set “changed_at” = 1167609600 where “library_section_id” = 11;
update “main”.“metadata_items” set “resources_changed_at” = 1167609600 where “resources_changed_at” = 11;

with no change to the above album, and no change to library or time travel radios.

so these 2 fields, even when not set to 48 years ago, have no apparent effect on this threads issues.

It’s been a while since I dabbled in SQL, so I might be wrong here, but this instruction won’t change anything, because none of the records has a resources_changed_at value of 11

oh, yeah I just typo’d that when I typed it out, I pasted twice accidently, it was the same as the other above, where library section id = 11

That is not a column which should be changed manually!

I’ve looked at your database, and there appear to be at least three rows with invalid data (blank last_viewed_at).

select metadata_items.title,last_viewed_at from metadata_item_settings join metadata_items on metadata_items.guid=metadata_item_settings.guid where last_viewed_at = ''

When you’ve been directly writing to the database, it’s honestly hard to tell what sort of issues you may have introduced, but those are the obvious ones :sweat_smile:

1 Like

ok I’ll check out it, very much appreciated.

re: database modification, I had no reason to make any modifications until it was determined I had some bad data imported :frowning:

YES!!!

that was it.

I was apparently concentrating in the wrong table. (metadata_items, instead of medata_items_settings).

the 3 items discovered there had the invalid date data that apparently passed the 2 different invalid date tests previously above.

setting those 3 rows from ‘’ to null has indeed fixed the radios.

final solution for those following along;

sqlite> select id from metadata_item_settings where last_viewed_at = '';

shows the id of the invalid last_viewed_at dates (note that is 2 apostrophes not quotes)

sqlite> update metadata_item_settings set "last_viewed_at"=? where last_viewed_at = '';

this corrected all instances of the invalid blanks with NULL and resolved the radios.

thank you again @elan for taking the time and effort to reach out, investigate, and solve the mystery!

1 Like