removed the shebangs and merged with develop branch

pull/280/head
iaacornus 3 years ago
parent 6f243bc0e4
commit df66dc1423
No known key found for this signature in database
GPG Key ID: 281739AE7252598C

@ -1 +1 @@
docker build -t rvmt . docker build -t rvmt .

@ -1 +1 @@
docker run -v $(pwd)/out/:/app/assets -v $(pwd)/.env:/app/.env -it rvmt docker run -v $(pwd)/out/:/app/assets -v $(pwd)/.env:/app/.env -it rvmt

@ -1,11 +1,9 @@
# Imports
import os import os
from os.path import exists from os.path import exists
from rich.console import Console from rich.console import Console
from utils.console import print_markdown from utils.console import print_markdown
from utils.console import print_step
def setup(): def setup():

@ -3,6 +3,7 @@ from pathlib import Path
from gtts import gTTS from gtts import gTTS
from mutagen.mp3 import MP3 from mutagen.mp3 import MP3
from rich.progress import track from rich.progress import track
import re
from utils.console import print_step, print_substep from utils.console import print_step, print_substep
@ -39,7 +40,9 @@ def save_text_to_mp3(reddit_obj):
# ! This can be longer, but this is just a good starting point # ! This can be longer, but this is just a good starting point
if length > 50: if length > 50:
break break
tts = gTTS(text=comment["comment_body"], lang="en", slow=False) comment=comment["comment_body"]
text=re.sub('((http|https)\:\/\/)?[a-zA-Z0-9\.\/\?\:@\-_=#]+\.([a-zA-Z]){2,6}([a-zA-Z0-9\.\&\/\?\:@\-_=#])*', '', comment)
tts = gTTS(text, lang="en", slow=False)
tts.save(f"assets/mp3/{idx}.mp3") tts.save(f"assets/mp3/{idx}.mp3")
length += MP3(f"assets/mp3/{idx}.mp3").info.length length += MP3(f"assets/mp3/{idx}.mp3").info.length

Loading…
Cancel
Save