Closed Bug 962650 Opened 10 years ago Closed 10 years ago

SoundCloud API appears to be reporting invalid duration

Categories

(Webmaker Graveyard :: Popcorn Maker, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mjschranz, Assigned: mjschranz)

Details

Attachments

(1 file)

This is causing tracks to be incorrectly reported in their duration and have clips much shorter than they actually are.

For example:

https://soundcloud.com/a-jameshetfield/metallica-nothing-else-matters // Reports 1:49
http://soundcloud.com/vithaya/interview // Reports 1:00
in the two cases being reported, the metadata returned does not match the clip being requested.  Instead, the metadata belongs to an older clip belonging to another user whose title (terminal element of URL) is identical to the requested clip's:  

the url requested was: 
https://soundcloud.com/macthesavage/interview  

info returned was for:

http://soundcloud.com/vithaya/interview

etc.
Nope, bug on our end. It's simply because we aren't using their API optimally.

Fix inc.
Comment on attachment 8364499 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/427

Weird that the other way doesn't work, but not really worth fussing over.
Attachment #8364499 - Flags: review?(scott) → review+
Commit pushed to master at https://github.com/mozilla/popcorn.webmaker.org

https://github.com/mozilla/popcorn.webmaker.org/commit/b3bbfefed4af45767421aa5b8f76d8ba098bc772
Fix Bug 962650 - Fix issue where SoundCloud clips had incorrect data due to multiple clips with same title
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: