Skip to content

Commit

Permalink
Upgrade requirements. Add dotenv support.
Browse files Browse the repository at this point in the history
  • Loading branch information
dyeray committed Jan 24, 2024
1 parent d05597c commit 2da891c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ venv
*.pyc
*.swp
*.local.*
.env
6 changes: 5 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import httpx
import os
from dotenv import load_dotenv
from flask import Flask, request, Response, render_template, redirect, stream_with_context

from core.feed import render_feed
from core.options import GlobalOptions
from core.plugin.plugin_factory import PluginFactory


load_dotenv()
app = Flask(__name__)


Expand Down Expand Up @@ -52,4 +55,5 @@ def application_error(e):


if __name__ == '__main__':
app.run(host='0.0.0.0', port=8000)
port = os.getenv('PODTUBE_PORT')
app.run(host='0.0.0.0', port=int(port) if port and port.isdigit() else 8080)
13 changes: 7 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
pod2gen==1.0.3
yt-dlp==2023.11.14
flask==3.0.0
yt-dlp==2023.12.30
flask==3.0.1
gunicorn==21.2.0
pytube==15.0.0
httpx==0.25.0
httpx==0.26.0
parsel==1.8.1
dateparser==1.1.8
pydantic==2.4.2
ftfy==6.1.1
dateparser==1.2.0
pydantic==2.5.3
ftfy==6.1.3
python-dotenv==1.0.1

0 comments on commit 2da891c

Please sign in to comment.