<?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: recently played pagination problem in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/recently-played-pagination-problem/m-p/6258318#M14724</link>
    <description>&lt;P&gt;Hi Skipper,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Get Recently Played Tracks feature can only retrieve up to 50 of the most recent tracks, even with paging.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this clarifies your question. Let me know if you have any others.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2024 13:37:55 GMT</pubDate>
    <dc:creator>Ximzend</dc:creator>
    <dc:date>2024-08-12T13:37:55Z</dc:date>
    <item>
      <title>recently played pagination problem</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/recently-played-pagination-problem/m-p/6256971#M14720</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;USA&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;iMac&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;macOS Sonoma 14.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I call the following command in a loop.&amp;nbsp; it should stop when &lt;FONT face="courier new,courier"&gt;response['next']&lt;/FONT&gt; is NULL:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;response = sp.current_user_recently_played(limit=50, after=int(cutoff_time.timestamp() * 1000)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unfortunately &lt;FONT face="courier new,courier"&gt;response['next']&lt;/FONT&gt; is never NULL.&amp;nbsp; I just sends the same URL that shows the same three songs over and over again.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;-Skipper&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2024 19:08:11 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/recently-played-pagination-problem/m-p/6256971#M14720</guid>
      <dc:creator>tyro2001</dc:creator>
      <dc:date>2024-08-11T19:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: recently played pagination problem</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/recently-played-pagination-problem/m-p/6258318#M14724</link>
      <description>&lt;P&gt;Hi Skipper,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Get Recently Played Tracks feature can only retrieve up to 50 of the most recent tracks, even with paging.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this clarifies your question. Let me know if you have any others.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 13:37:55 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/recently-played-pagination-problem/m-p/6258318#M14724</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-08-12T13:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: recently played pagination problem</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/recently-played-pagination-problem/m-p/6258462#M14727</link>
      <description>Hey there - I think those are two separate issues. Even if I pull the max number available, shouldn’t next be set to NULL?&lt;BR /&gt;&lt;BR /&gt;Thx!&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Aug 2024 14:39:24 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/recently-played-pagination-problem/m-p/6258462#M14727</guid>
      <dc:creator>tyro2001</dc:creator>
      <dc:date>2024-08-12T14:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: recently played pagination problem</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/recently-played-pagination-problem/m-p/6258576#M14729</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I agree that it should not provide&amp;nbsp;&lt;EM&gt;next&lt;/EM&gt; when there are no more tracks to get. The Devs should look into it.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 15:40:59 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/recently-played-pagination-problem/m-p/6258576#M14729</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-08-12T15:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: recently played pagination problem</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/recently-played-pagination-problem/m-p/6258631#M14732</link>
      <description>It is still a problem if I set the limit to 1. Just goes into an infinite loop.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Aug 2024 16:13:24 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/recently-played-pagination-problem/m-p/6258631#M14732</guid>
      <dc:creator>tyro2001</dc:creator>
      <dc:date>2024-08-12T16:13:24Z</dc:date>
    </item>
  </channel>
</rss>

