Giter VIP home page Giter VIP logo

Comments (8)

vincelwt avatar vincelwt commented on August 30, 2024

Could you try adding console.log(f.lastRatingChangeTimestamp); just after line 218 (file app/js/fetch.js) and send me one of the result data ?

from harmony.

w0xel avatar w0xel commented on August 30, 2024

Actually, i didn't see the whole picture last time. It gives about 150 lines, half of them undefined, the other half gives a correct Timestamp. That would probably explain why some of them appear sorted.

Two lines, one with correct Timestamp, one with undefined:

[23202:0912/214302:INFO:CONSOLE(219)] "1393320267098000", source: file:///home/sebastian/harmony/app/js/fetch.js (219)
[23202:0912/214302:INFO:CONSOLE(219)] "undefined", source: file:///home/sebastian/harmony/app/js/fetch.js (219)

from harmony.

w0xel avatar w0xel commented on August 30, 2024

Oh and it's not random. the first ~70 lines have a correct timestamp, the last ~80 have none. It somehow stops suddendly to have timestamps.

from harmony.

vincelwt avatar vincelwt commented on August 30, 2024

Oops, I meant to add
console.log(f); after line 218
So we can see the whole data of the tracks with no timestamps (they must have another property we can use)

from harmony.

w0xel avatar w0xel commented on August 30, 2024

I actually had to use Object.keys(f), because it doesn't seem to have a toString().
A proper line gives

"id,title,imageBaseUrl,artist,album,albumArtist,composer,genre,durationMillis,track,disc,year,playCount,rating,creationDate,lastPlayed,storeId,matchedId,type,albumMatchedId,artistMatchedId,artistImageBaseUrl,explicitType,origin,previewToken,previewInfo,lastRatingChangeTimestamp,audioMatchedId,rightsInfo,autogenArtistArt,price,artistImage,canMakeRadio"

while a non working line gives

"id,title,imageBaseUrl,artist,album,albumArtist,composer,genre,durationMillis,track,disc,year,playCount,rating,creationDate,lastPlayed,storeId,matchedId,type,albumMatchedId,artistMatchedId,artistImageBaseUrl,explicitType,origin,previewToken,previewInfo,audioMatchedId,rightsInfo,autogenArtistArt,price,artistImage,canMakeRadio"

from harmony.

vincelwt avatar vincelwt commented on August 30, 2024

Mm, there is no timestamp in the later ones.
Do you know how these tracks are differents ? Were the ones without timestamp liked a very long time ago ? Are some of them uploaded and others all-access ?

I really can't see why they wouldn't have timestamps :/

from harmony.

w0xel avatar w0xel commented on August 30, 2024

Yep seems like the older (added let's say 2 years ago) songs do not have a timestamp, which is strange.
But what is even more strange, and that was the original reason i posted this issue, and i noticed this just now, is that there are always some old songs on top (like shortly added) which shouldn't be there. I'm investigating right now if they have some special timestamp so they can be sorted out.

For the old songs: For me it isn't important that they are sorted. I don't remember in which order i added those year-old songs anyway, but the new songs should really be in the right order.

from harmony.

w0xel avatar w0xel commented on August 30, 2024

I sent you a pull request. Was simply due to the fact that sort can't handle "NaN"

from harmony.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.