Skip to content

Commit

Permalink
Update Wordlist
Browse files Browse the repository at this point in the history
  • Loading branch information
Commandcracker committed Jul 5, 2024
1 parent 3f9aa7e commit 748ee87
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
5 changes: 5 additions & 0 deletions spellcheck_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ html
dev

# Programming Keywords
str
env
untrusted
usr
Expand Down Expand Up @@ -66,9 +67,13 @@ github
dlp
geeksforgeeks
www
metalink

# Video Streaming
yc
yt
dl
youtube

# Other
f'Attachment
20 changes: 12 additions & 8 deletions src/youcube/youcube.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@
"""Related CC-Tweaked issues
Streaming HTTP response https://github.com/cc-tweaked/CC-Tweaked/issues/1181
Speaker Networks https://github.com/cc-tweaked/CC-Tweaked/issues/1488
Pocket computers do not have many usecases without network access https://github.com/cc-tweaked/CC-Tweaked/issues/1406
Pocket computers do not have many usecases without network access
https://github.com/cc-tweaked/CC-Tweaked/issues/1406
Speaker limit to 8 https://github.com/cc-tweaked/CC-Tweaked/issues/1313
Some way to notify player through pocket computer with modem https://github.com/cc-tweaked/CC-Tweaked/issues/1148
Some way to notify player through pocket computer with modem
https://github.com/cc-tweaked/CC-Tweaked/issues/1148
Memory limits for computers https://github.com/cc-tweaked/CC-Tweaked/issues/1580
"""

Expand Down Expand Up @@ -377,18 +379,20 @@ async def main_start(app: Sanic):
logger.info("Spotipy Disabled")


@app.route("/dfpwm/<id:str>/<chunkindex:int>")
async def stream_dfpwm(request: Request, id: str, chunkindex: int):
return raw(await getchunk(join(DATA_FOLDER, get_audio_name(id)), chunkindex))
@app.route("/dfpwm/<media_id:str>/<chunkindex:int>")
async def stream_dfpwm(_request: Request, media_id: str, chunkindex: int):
"""WIP HTTP mode"""
return raw(await getchunk(join(DATA_FOLDER, get_audio_name(media_id)), chunkindex))


@app.route("/32vid/<id:str>/<width:int>/<height:int>/<tracker:int>") # , stream=True
@app.route("/32vid/<media_id:str>/<width:int>/<height:int>/<tracker:int>") # , stream=True
async def stream_32vid(
request: Request, id: str, width: int, height: int, tracker: int
_request: Request, media_id: str, width: int, height: int, tracker: int
):
"""WIP HTTP mode"""
return raw(
"\n".join(
await get_vid(join(DATA_FOLDER, get_video_name(id, width, height)), tracker)
await get_vid(join(DATA_FOLDER, get_video_name(media_id, width, height)), tracker)
)
)

Expand Down

0 comments on commit 748ee87

Please sign in to comment.