add enclosure to have actual audio attached
This commit is contained in:
@@ -30,10 +30,11 @@ for file in os.listdir("files"):
|
||||
|
||||
items.append(rfeed.Item(
|
||||
title=f"Regionalnachrichten {day}.{month}.{year} {hour}:{minute}",
|
||||
link = f"https://dukun.de/xox/hgwnews/files/{file}",
|
||||
link = "",
|
||||
description = f"{md5}",
|
||||
author = "NDR1 Radio MV Studio Greifswald",
|
||||
guid = rfeed.Guid(md5),
|
||||
enclosure = rfeed.Enclosure(url=f"https://dukun.de/xox/hgwnews/files/{file}", length=os.path.getsize(f"files/{file}"), type="audio/mpeg"),
|
||||
pubDate = datetime.datetime(year, month, day, hour, minute)
|
||||
))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user