<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: duration_ms includes nonsense JSON in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-includes-nonsense-JSON/m-p/5755129#M11897</link>
    <description>&lt;P&gt;I'm not seeing this in my track object responses.&lt;/P&gt;</description>
    <pubDate>Sun, 17 Dec 2023 23:00:55 GMT</pubDate>
    <dc:creator>kingosticks4</dc:creator>
    <dc:date>2023-12-17T23:00:55Z</dc:date>
    <item>
      <title>duration_ms includes nonsense JSON</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-includes-nonsense-JSON/m-p/5753768#M11893</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Selbi_0-1702803563024.png" style="width: 400px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/166959iBEDD9DD13D3E7B00/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Selbi_0-1702803563024.png" alt="Selbi_0-1702803563024.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a few days now, my app has been broken. After some digging it appears my code tries to cast the duration_ms field to an integer, but appears that field now also includes some weird "totalMilliseconds" JSON, causing the entire parser to fail. Why was this added? This just causes issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: On further testing, this only seems to be the case for local files.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2023 17:11:24 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-includes-nonsense-JSON/m-p/5753768#M11893</guid>
      <dc:creator>Selbi</dc:creator>
      <dc:date>2023-12-30T17:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: duration_ms includes nonsense JSON</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-includes-nonsense-JSON/m-p/5755129#M11897</link>
      <description>&lt;P&gt;I'm not seeing this in my track object responses.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2023 23:00:55 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-includes-nonsense-JSON/m-p/5755129#M11897</guid>
      <dc:creator>kingosticks4</dc:creator>
      <dc:date>2023-12-17T23:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: duration_ms includes nonsense JSON</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-includes-nonsense-JSON/m-p/5755785#M11899</link>
      <description>&lt;P&gt;Try fetching a playlist that contains Local songs.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 08:28:57 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-includes-nonsense-JSON/m-p/5755785#M11899</guid>
      <dc:creator>Selbi</dc:creator>
      <dc:date>2023-12-18T08:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: duration_ms includes nonsense JSON</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-includes-nonsense-JSON/m-p/5755810#M11900</link>
      <description>&lt;P&gt;Not sure I have any of those, but that's a useful detail about your problem.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 08:45:14 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-includes-nonsense-JSON/m-p/5755810#M11900</guid>
      <dc:creator>kingosticks4</dc:creator>
      <dc:date>2023-12-18T08:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: duration_ms includes nonsense JSON</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-includes-nonsense-JSON/m-p/5783596#M12030</link>
      <description>&lt;P&gt;I can confirm the duration_ms field's value does not match the specification for local files as described by Selbi. I'd like to kindly request Spotify's advice on whether the documentation or the actual behavior is to be considered correct &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2023 04:01:40 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-includes-nonsense-JSON/m-p/5783596#M12030</guid>
      <dc:creator>dargmuesli</dc:creator>
      <dc:date>2023-12-30T04:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: duration_ms includes nonsense JSON</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-includes-nonsense-JSON/m-p/6587694#M16265</link>
      <description>&lt;P&gt;This appears to be fixed, duration_ms now returns a # rather than a sub-field totalMilliseconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;I created a PR #413 in the spotify-web-api-java library. (can't post gh links?)&lt;/P&gt;</description>
      <pubDate>Sun, 15 Dec 2024 22:35:48 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-includes-nonsense-JSON/m-p/6587694#M16265</guid>
      <dc:creator>bruce_downs</dc:creator>
      <dc:date>2024-12-15T22:35:48Z</dc:date>
    </item>
  </channel>
</rss>

