ydl-podcast 1.10.0__tar.gz → 1.11.0__tar.gz

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.
@@ -1,18 +1,18 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ydl-podcast
3
- Version: 1.10.0
3
+ Version: 1.11.0
4
4
  Summary: A simple tool to generate Podcast-like RSS feeds from youtube (or other youtube-dl supported services) channels, using youtube-dl/yt-dlp
5
5
  Keywords: podcast,youtube-dl
6
6
  Author: nbr23
7
7
  Author-email: nbr23 <max@23.tf>
8
8
  License: MIT
9
- Requires-Dist: yt-dlp>=2025.12.8
9
+ Requires-Dist: yt-dlp>=2026.1.31
10
10
  Requires-Dist: pyyaml==6.0.2
11
11
  Requires-Dist: jinja2>=3.1.2
12
12
  Requires-Dist: markupsafe>=2.1.1
13
13
  Requires-Dist: pillow==12.0.0
14
14
  Requires-Dist: youtube-dl ; extra == 'youtube-dl'
15
- Requires-Dist: yt-dlp>=2025.12.8 ; extra == 'yt-dlp'
15
+ Requires-Dist: yt-dlp>=2026.1.31 ; extra == 'yt-dlp'
16
16
  Requires-Python: >=3.9
17
17
  Project-URL: homepage, https://github.com/nbr23/ydl-podcast
18
18
  Project-URL: repository, https://github.com/nbr23/ydl-podcast
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ydl-podcast"
3
- version = "1.10.0"
3
+ version = "1.11.0"
4
4
  description = "A simple tool to generate Podcast-like RSS feeds from youtube (or other youtube-dl supported services) channels, using youtube-dl/yt-dlp"
5
5
  license = { text = "MIT" }
6
6
  authors = [
@@ -10,7 +10,7 @@ readme = "README.md"
10
10
  requires-python = ">=3.9"
11
11
  keywords = ["podcast", "youtube-dl"]
12
12
  dependencies = [
13
- "yt-dlp>=2025.12.08",
13
+ "yt-dlp>=2026.01.31",
14
14
  "PyYAML==6.0.2",
15
15
  "Jinja2>=3.1.2",
16
16
  "MarkupSafe>=2.1.1",
@@ -18,7 +18,7 @@ dependencies = [
18
18
  ]
19
19
 
20
20
  [project.optional-dependencies]
21
- yt-dlp = ["yt-dlp>=2025.12.08"]
21
+ yt-dlp = ["yt-dlp>=2026.01.31"]
22
22
  youtube-dl = ["youtube-dl"]
23
23
 
24
24
  [project.urls]
@@ -66,11 +66,10 @@ def convert_thumbnail_to_jpg(path, thumbnail_filename):
66
66
  return thumbnail_filename
67
67
  try:
68
68
  print("Converting thumbnail to jpg", thumbnail_filename)
69
- im = Image.open(os.path.join(path, thumbnail_filename))
70
- rgb_im = im.convert("RGB")
71
69
  new_thumbnail_filename = thumbnail_filename.replace("."+ext, ".jpg")
72
- rgb_im.save(os.path.join(path, new_thumbnail_filename))
73
- # os.remove(os.path.join(path, thumbnail_filename))
70
+ with Image.open(os.path.join(path, thumbnail_filename)) as im:
71
+ rgb_im = im.convert("RGB")
72
+ rgb_im.save(os.path.join(path, new_thumbnail_filename))
74
73
  return new_thumbnail_filename
75
74
  except Exception as e:
76
75
  print("Error converting thumbnail to jpg: %s" % e)
@@ -52,7 +52,7 @@ def main():
52
52
  if args.filter is not None and sub["name"] not in args.filter or sub["name"] in args.exclude:
53
53
  print("Skipping subscription", sub["name"])
54
54
  continue
55
- sub = ChainMap(
55
+ sub = dict(ChainMap(
56
56
  sub,
57
57
  {
58
58
  t: config[t]
@@ -61,7 +61,7 @@ def main():
61
61
  in ["output_dir", "url_root", "best", "format", "filename_template"]
62
62
  },
63
63
  sub_defaults,
64
- )
64
+ ))
65
65
  if (
66
66
  "ydl_options" in sub
67
67
  and sub["ydl_options"] is not None
@@ -7,6 +7,7 @@ FEED_TMPL = """<?xml version="1.0"?>
7
7
  <updated>{{ last_update }}</updated>
8
8
  <title><![CDATA[{{ channel_title }}]]></title>
9
9
  <link><![CDATA[{{ channel_link }}]]></link>
10
+ <description><![CDATA[{{ channel_description | default(channel_title, true) }}]]></description>
10
11
  {% if icon_url %}
11
12
  <itunes:image href="{{ icon_url }}"/>
12
13
  {% endif %}
@@ -14,7 +15,7 @@ FEED_TMPL = """<?xml version="1.0"?>
14
15
 
15
16
  {% for item in items %}
16
17
  <item>
17
- <id><![CDATA[{{ item.id }}]]></id>
18
+ <guid isPermaLink="false"><![CDATA[{{ item.id }}]]></guid>
18
19
  <title><![CDATA[{{ item.title }}]]></title>
19
20
  <enclosure url="{{ item.url }}" type="{{ item.media_type }}"/>
20
21
  {% if item.pubDate != None %}<pubDate>{{ item.pubDate }}</pubDate>{% endif %}
File without changes