Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hot-tracks): don't include invalid SoundCloud
eId
(#719)
Contributes to #718 and #614. ## What does this PR do / solve? The top track listed on the [hot tracks page](https://openwhyd.org/hot) has an invalid SoundCloud `eId`, causing its score to artificially accumulate the stats of all posts with that same invalid `eId: "/sc/undefined"`. ```json { "_id": "53f5d7af7b4e770b172679bc", "uId": "52e2620f7e91c862b2b3f66a", "uNm": "Rien", "text": "", "pl": { "name": "Balkan Beat Gypsy #3", "id": 144 }, "name": "Haris Pilton - Gypsy Partizans (2013)", "eId": "/sc/undefined", "img": "https://i1.sndcdn.com/artworks-000047093292-y6wbnv-large.jpg?e76cf77", "nbP": 958, "lov": [ "53da584ce04b7b4fca7cf528", "518b5a447e91c862b2adea1a", "6485e598d1b1033fa650d66b" ], "nbR": 213, "score": 900, "nbL": 19, "prev": 900, "trackId": "54bf88e3e04b7b4fca82c18f", "rankIncr": 0, "trackUrl": "//soundcloud.com/undefined", "isLoved": false } ``` ## Overview of changes Until we fix the root cause (see #614), skip tracks with invalid soundcloud `eId`.
- Loading branch information