Comments (8)
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.
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.
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.
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.
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.
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.
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.
I sent you a pull request. Was simply due to the fact that sort can't handle "NaN"
from harmony.
Related Issues (20)
- Could you add support for Deezer Family ?
- Few Features ideas to be the perferct app HOT 1
- External plugins don't work HOT 1
- GoogleMusic: Songs do not finish playing and skips to next track HOT 1
- Auto skipping and Fn media keys issue HOT 6
- [enhancement] Soundcloud - high quality mode HOT 1
- Spotify - Refreshing Failed HOT 3
- No devices mode HOT 1
- .m4a files: Don't display time, album & artist
- Support for HearThis.at
- Installation fails
- Youtube doesn't work HOT 4
- Added local music gets stuck on "Refreshing" non responsive to clicks crashed?
- HypeMachine "Wrong Password"
- Control playback with plugin ?
- Localization support
- Non-obvious behavour, bordering deceptive marketing
- Can't connect on YouTube
- Can't connect to Google Music
- This project is DEAD HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harmony.