This commit is contained in:
parent
f99bc4cc4a
commit
e9367deda6
34
.drone.yml
34
.drone.yml
@ -11,25 +11,25 @@ steps:
|
|||||||
from_secret: YOUTUBE_API_KEY
|
from_secret: YOUTUBE_API_KEY
|
||||||
YOUTUBE_CHANNEL_ID: 'UCmpilcSVu1T-AsAiiHbfpcA'
|
YOUTUBE_CHANNEL_ID: 'UCmpilcSVu1T-AsAiiHbfpcA'
|
||||||
TZ: 'Europe/Berlin'
|
TZ: 'Europe/Berlin'
|
||||||
commands:
|
commands:
|
||||||
- apk --no-cache add gcc musl-dev tzdata
|
- apk --no-cache add gcc musl-dev tzdata
|
||||||
- pip3 install --no-cache-dir -r requirements.txt
|
- pip3 install --no-cache-dir -r requirements.txt
|
||||||
- |
|
- |
|
||||||
python3 -c '
|
python3 -c '
|
||||||
from GetLatestVideo import API
|
from GetLatestVideo import API
|
||||||
import os
|
import os
|
||||||
|
|
||||||
YOUTUBE_API_KEY = os.getenv("YOUTUBE_API_KEY")
|
YOUTUBE_API_KEY = os.getenv("YOUTUBE_API_KEY")
|
||||||
YOUTUBE_CHANNEL_ID = os.getenv("YOUTUBE_CHANNEL_ID")
|
YOUTUBE_CHANNEL_ID = os.getenv("YOUTUBE_CHANNEL_ID")
|
||||||
|
|
||||||
CHANNEL_ID = [
|
CHANNEL_ID = [
|
||||||
YOUTUBE_CHANNEL_ID
|
YOUTUBE_CHANNEL_ID
|
||||||
]
|
]
|
||||||
|
|
||||||
videos = []
|
videos = []
|
||||||
yt = API(YOUTUBE_API_KEY)
|
yt = API(YOUTUBE_API_KEY)
|
||||||
|
|
||||||
for channel in CHANNEL_ID:
|
for channel in CHANNEL_ID:
|
||||||
videos.append(yt.get_latest_video(channel))
|
videos.append(yt.get_latest_video(channel))
|
||||||
|
|
||||||
print(videos)'
|
print(videos)'
|
||||||
|
Loading…
Reference in New Issue
Block a user