Skip to content

Commit

Permalink
Remove warning when image url does not end in an image extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
dyeray committed Jan 27, 2024
1 parent 3655fea commit c14dfb5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion core/feed.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import warnings
from urllib.parse import urlencode

from pod2gen import Podcast, Episode, Media
from pod2gen import Podcast, Episode, Media, NotSupportedByItunesWarning

from core.model import PodcastItem
from core.options import GlobalOptions
from core.plugin import Plugin


warnings.filterwarnings("ignore", category=NotSupportedByItunesWarning)


def render_feed(feed_id: str, plugin: Plugin, options: GlobalOptions, base_url: str):
feed = plugin.get_feed(feed_id)
podcast = Podcast(
Expand Down
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import httpx
import os

import httpx
from dotenv import load_dotenv
from flask import Flask, request, Response, render_template, redirect, stream_with_context

Expand Down

0 comments on commit c14dfb5

Please sign in to comment.