mirror of
https://github.com/kemko/icecast-ripper.git
synced 2026-01-01 15:55:42 +03:00
fixed deprecation
This commit is contained in:
@@ -38,7 +38,7 @@ def generate_rss_feed(files, output_directory, server_host):
|
|||||||
with tag('guid', isPermaLink='false'):
|
with tag('guid', isPermaLink='false'):
|
||||||
text(file_id)
|
text(file_id)
|
||||||
with tag('pubDate'):
|
with tag('pubDate'):
|
||||||
pub_date = datetime.utcfromtimestamp(os.path.getctime(file_path)).strftime('%a, %d %b %Y %H:%M:%S UTC')
|
pub_date = datetime.fromtimestamp(os.path.getctime(file_path)).strftime('%a, %d %b %Y %H:%M:%S UTC')
|
||||||
text(pub_date)
|
text(pub_date)
|
||||||
|
|
||||||
return doc.getvalue()
|
return doc.getvalue()
|
||||||
|
|||||||
Reference in New Issue
Block a user