Skip to content
Snippets Groups Projects
Commit 93fdfe9d authored by Andreas Valder's avatar Andreas Valder
Browse files

fixed video_id now beeing video.id closes #188

parent 11093c24
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ def feed(handle=None):
for entry in entries:
entry['updated'] = max(entry['video']['time_created'], entry['video']['time_updated'], entry['time_created'], entry['time_updated'], key=fixdate)
if len(entry['video']['hash']) != 32:
entry['atomid'] = gen_atomid('Video AG, videos['+str(entry['video_id'])+']')
entry['atomid'] = gen_atomid('Video AG, videos['+str(entry['video']['id'])+']')
else:
entry['atomid'] = 'urn:md5:'+(entry['video']['hash'].upper())
updated = max(updated, entry['updated'], key=fixdate)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment