Prevent soundcloud from downloading existing episodes each update.

GUIDs are stored in the database as strings, but soundcloud creates them
as integers. Python no longer succeeds when comparing these integers to
the string keys from the existing database entries. This produces new
episodes on every update which then collide with the existing GUIDs.
This commit is contained in:
auouymous 2021-06-08 00:55:35 -06:00
parent ad3e0a5d5d
commit 91cf6c9410
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class SoundcloudUser(object):
'url': url,
'file_size': int(filesize),
'mime_type': filetype,
'guid': track.get('permalink', track.get('id')),
'guid': str(track.get('permalink', track.get('id'))),
'published': soundcloud_parsedate(track.get('created_at', None)),
}
finally: