spotifywebapiPython 1.0.31__py3-none-any.whl → 1.0.32__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of spotifywebapiPython might be problematic. Click here for more details.

@@ -2349,7 +2349,6 @@ class SpotifyClient:
2349
2349
  # are we auto-paging? if so, then use max limit.
2350
2350
  if limitTotal > 0:
2351
2351
  limit = 50
2352
- #limit = 2 # TEST TODO
2353
2352
  if limit > limitTotal:
2354
2353
  limit = limitTotal
2355
2354
  result = AlbumPageSaved()
@@ -2504,7 +2503,6 @@ class SpotifyClient:
2504
2503
  # are we auto-paging? if so, then use max limit.
2505
2504
  if limitTotal > 0:
2506
2505
  limit = 50
2507
- #limit = 2 # TEST TODO
2508
2506
  if limit > limitTotal:
2509
2507
  limit = limitTotal
2510
2508
  result = AlbumPageSimplified()
@@ -2756,7 +2754,6 @@ class SpotifyClient:
2756
2754
  # are we auto-paging? if so, then use max limit.
2757
2755
  if limitTotal > 0:
2758
2756
  limit = 50
2759
- #limit = 2 # TEST TODO
2760
2757
  if limit > limitTotal:
2761
2758
  limit = limitTotal
2762
2759
  result = TrackPageSimplified()
@@ -2986,7 +2983,6 @@ class SpotifyClient:
2986
2983
  # are we auto-paging? if so, then use max limit.
2987
2984
  if limitTotal > 0:
2988
2985
  limit = 50
2989
- #limit = 5 # TEST TODO
2990
2986
  if limit > limitTotal:
2991
2987
  limit = limitTotal
2992
2988
  result = AlbumPageSimplified()
@@ -3275,7 +3271,6 @@ class SpotifyClient:
3275
3271
  # are we auto-paging? if so, then use max limit.
3276
3272
  if limitTotal > 0:
3277
3273
  limit = 50
3278
- #limit = 1 # TEST TODO
3279
3274
  if limit > limitTotal:
3280
3275
  limit = limitTotal
3281
3276
  result = ArtistPage()
@@ -3620,7 +3615,6 @@ class SpotifyClient:
3620
3615
  # are we auto-paging? if so, then use max limit.
3621
3616
  if limitTotal > 0:
3622
3617
  limit = 50
3623
- #limit = 2 # TEST TODO
3624
3618
  if limit > limitTotal:
3625
3619
  limit = limitTotal
3626
3620
  result = ChapterPageSimplified()
@@ -3767,7 +3761,6 @@ class SpotifyClient:
3767
3761
  # are we auto-paging? if so, then use max limit.
3768
3762
  if limitTotal > 0:
3769
3763
  limit = 50
3770
- #limit = 2 # TEST TODO
3771
3764
  if limit > limitTotal:
3772
3765
  limit = limitTotal
3773
3766
  result = AudiobookPageSimplified()
@@ -4141,7 +4134,6 @@ class SpotifyClient:
4141
4134
  # are we auto-paging? if so, then use max limit.
4142
4135
  if limitTotal > 0:
4143
4136
  limit = 50
4144
- #limit = 2 # TEST TODO
4145
4137
  if limit > limitTotal:
4146
4138
  limit = limitTotal
4147
4139
  result = CategoryPage()
@@ -4378,6 +4370,12 @@ class SpotifyClient:
4378
4370
  .. include:: ../docs/include/samplecode/SpotifyClient/GetCategoryPlaylists_AutoPaging.py
4379
4371
  ```
4380
4372
  </details>
4373
+ <details>
4374
+ <summary>Sample Code - Made For You Playlists</summary>
4375
+ ```python
4376
+ .. include:: ../docs/include/samplecode/SpotifyClient/GetCategoryPlaylists_MadeForYou.py
4377
+ ```
4378
+ </details>
4381
4379
  """
4382
4380
  apiMethodName:str = 'GetCategoryPlaylists'
4383
4381
  apiMethodParms:SIMethodParmListContext = None
@@ -4406,7 +4404,6 @@ class SpotifyClient:
4406
4404
  # are we auto-paging? if so, then use max limit.
4407
4405
  if limitTotal > 0:
4408
4406
  limit = 50
4409
- #limit = 2 # TEST TODO
4410
4407
  if limit > limitTotal:
4411
4408
  limit = limitTotal
4412
4409
  result = PlaylistPageSimplified()
@@ -4833,7 +4830,6 @@ class SpotifyClient:
4833
4830
  # are we auto-paging? if so, then use max limit.
4834
4831
  if limitTotal > 0:
4835
4832
  limit = 50
4836
- #limit = 1 # TEST TODO
4837
4833
  if limit > limitTotal:
4838
4834
  limit = limitTotal
4839
4835
  result = EpisodePageSaved()
@@ -5102,7 +5098,6 @@ class SpotifyClient:
5102
5098
  # are we auto-paging? if so, then use max limit.
5103
5099
  if limitTotal > 0:
5104
5100
  limit = 50
5105
- #limit = 2 # TEST TODO
5106
5101
  if limit > limitTotal:
5107
5102
  limit = limitTotal
5108
5103
  result = PlaylistPageSimplified()
@@ -5903,7 +5898,6 @@ class SpotifyClient:
5903
5898
  # are we auto-paging? if so, then use max limit.
5904
5899
  if limitTotal > 0:
5905
5900
  limit = 50
5906
- #limit = 40 # TEST TODO
5907
5901
  if limit > limitTotal:
5908
5902
  limit = limitTotal
5909
5903
  result = PlayHistoryPage()
@@ -6271,7 +6265,6 @@ class SpotifyClient:
6271
6265
  # are we auto-paging? if so, then use max limit.
6272
6266
  if limitTotal > 0:
6273
6267
  limit = 50
6274
- #limit = 2 # TEST TODO
6275
6268
  if limit > limitTotal:
6276
6269
  limit = limitTotal
6277
6270
  result = PlaylistPage()
@@ -6422,7 +6415,6 @@ class SpotifyClient:
6422
6415
  # are we auto-paging? if so, then use max limit.
6423
6416
  if limitTotal > 0:
6424
6417
  limit = 50
6425
- #limit = 2 # TEST TODO
6426
6418
  if limit > limitTotal:
6427
6419
  limit = limitTotal
6428
6420
  result = PlaylistPageSimplified()
@@ -6571,7 +6563,6 @@ class SpotifyClient:
6571
6563
  # are we auto-paging? if so, then use max limit.
6572
6564
  if limitTotal > 0:
6573
6565
  limit = 50
6574
- #limit = 2 # TEST TODO
6575
6566
  if limit > limitTotal:
6576
6567
  limit = limitTotal
6577
6568
  result = PlaylistPageSimplified()
@@ -6747,7 +6738,7 @@ class SpotifyClient:
6747
6738
  Args:
6748
6739
  showId (str):
6749
6740
  The Spotify ID for the show.
6750
- Example: `38bS44xjbVVZ3No3ByF1dJ`
6741
+ Example: `6kAsbP8pxwaU2kPibKTuHE`
6751
6742
  limit (int):
6752
6743
  The maximum number of items to return in a page of items.
6753
6744
  Default: 20, Range: 1 to 50.
@@ -6818,7 +6809,6 @@ class SpotifyClient:
6818
6809
  # are we auto-paging? if so, then use max limit.
6819
6810
  if limitTotal > 0:
6820
6811
  limit = 50
6821
- #limit = 2 # TEST TODO
6822
6812
  if limit > limitTotal:
6823
6813
  limit = limitTotal
6824
6814
  result = EpisodePageSimplified()
@@ -6965,7 +6955,6 @@ class SpotifyClient:
6965
6955
  # are we auto-paging? if so, then use max limit.
6966
6956
  if limitTotal > 0:
6967
6957
  limit = 50
6968
- #limit = 2 # TEST TODO
6969
6958
  if limit > limitTotal:
6970
6959
  limit = limitTotal
6971
6960
  result = ShowPageSaved()
@@ -7342,7 +7331,6 @@ class SpotifyClient:
7342
7331
  # are we auto-paging? if so, then use max limit.
7343
7332
  if limitTotal > 0:
7344
7333
  limit = 50
7345
- #limit = 2 # TEST TODO
7346
7334
  if limit > limitTotal:
7347
7335
  limit = limitTotal
7348
7336
  result = TrackPageSaved()
@@ -8256,7 +8244,6 @@ class SpotifyClient:
8256
8244
  # are we auto-paging? if so, then use max limit.
8257
8245
  if limitTotal > 0:
8258
8246
  limit = 50
8259
- #limit = 20 # TEST TODO
8260
8247
  if limit > limitTotal:
8261
8248
  limit = limitTotal
8262
8249
  result = ArtistPage()
@@ -8411,7 +8398,6 @@ class SpotifyClient:
8411
8398
  # are we auto-paging? if so, then use max limit.
8412
8399
  if limitTotal > 0:
8413
8400
  limit = 50
8414
- #limit = 10 # TEST TODO
8415
8401
  if limit > limitTotal:
8416
8402
  limit = limitTotal
8417
8403
  result = TrackPage()
@@ -11513,7 +11499,6 @@ class SpotifyClient:
11513
11499
  market:str=None,
11514
11500
  includeExternal:str=None,
11515
11501
  limitTotal:int=None,
11516
- spotifyOwnedOnly:bool=False
11517
11502
  ) -> SearchResponse:
11518
11503
  """
11519
11504
  Get Spotify catalog information about Playlists that match a keyword string.
@@ -11558,10 +11543,6 @@ class SpotifyClient:
11558
11543
  and paging is automatically used to retrieve all available items up to the
11559
11544
  maximum number specified.
11560
11545
  Default: None (disabled)
11561
- spotifyOwnedOnly (bool):
11562
- True to return only found items that are owned by spotify (e.g. content generated for you by the spotify AI engine);
11563
- otherwise, False to return all found items.
11564
- Default is False.
11565
11546
 
11566
11547
  Returns:
11567
11548
  A `SearchResponse` object that contains the search results.
@@ -11588,12 +11569,6 @@ class SpotifyClient:
11588
11569
  .. include:: ../docs/include/samplecode/SpotifyClient/SearchPlaylists_AutoPaging.py
11589
11570
  ```
11590
11571
  </details>
11591
- <details>
11592
- <summary>Sample Code - Spotify Generated, Daily Mix</summary>
11593
- ```python
11594
- .. include:: ../docs/include/samplecode/SpotifyClient/SearchPlaylists_Spotify_DailyMix.py
11595
- ```
11596
- </details>
11597
11572
  """
11598
11573
  apiMethodName:str = 'SearchPlaylists'
11599
11574
  apiMethodParms:SIMethodParmListContext = None
@@ -11611,7 +11586,6 @@ class SpotifyClient:
11611
11586
  apiMethodParms.AppendKeyValue("market", market)
11612
11587
  apiMethodParms.AppendKeyValue("includeExternal", includeExternal)
11613
11588
  apiMethodParms.AppendKeyValue("limitTotal", limitTotal)
11614
- apiMethodParms.AppendKeyValue("spotifyOwnedOnly", spotifyOwnedOnly)
11615
11589
  _logsi.LogMethodParmList(SILevel.Verbose, "Searching Spotify catalog for %s information" % criteriaType, apiMethodParms)
11616
11590
 
11617
11591
  # validations.
@@ -11685,12 +11659,6 @@ class SpotifyClient:
11685
11659
  # update result object with final paging details.
11686
11660
  result.Total = pageObj.Total
11687
11661
 
11688
- # was request for spotify owned items only?
11689
- if spotifyOwnedOnly:
11690
- _logsi.LogObject(SILevel.Verbose, (TRACE_METHOD_RESULT_TYPE + result.PagingInfo) % (apiMethodName, type(result).__name__), result, excludeNonPublic=True)
11691
- _logsi.LogVerbose("Filtering results for Spotify owned content")
11692
- result._Items = result.GetSpotifyOwnedItems()
11693
-
11694
11662
  # do not sort, as spotify uses intelligent AI to return results in its order.
11695
11663
 
11696
11664
  # trace.