Comments (2)
sr, im fixed, thanks bro, this is code after fixed
changes = ""
while True:
with open('config.json', 'r') as file:
data = json.load(file)
os.system('cls' if os.name=='nt' else 'clear')
loopPrint = (f"""{bcolors.HEADER}
/__/|__ __//|
|__|/_/|__ Video generator v1.1.0 _/_|_||
|_|___|/_/|__ fabbree __/_|___||
|___|____|/_/|__ __/_|____|_||
|_|___|_____|/_/|_________________________________________/_|_____|___||
|___|___|__|___|/__/___/___/___/___/___/___/___/___/___/_|_____|____|_||
|_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___||
|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|_||
|_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|/{bcolors.ENDC}
{bcolors.OKGREEN} {changes}{bcolors.ENDC}
Current configurations:
Your Pexels API key: {bcolors.WARNING}{data['pexelsAPIKey']}{bcolors.ENDC}
Amount of videos to create: {bcolors.WARNING}{data['amountOfVideosToMake']}{bcolors.ENDC}
Options menu:
1) Change amount of videos to create
2) Change Pexels API key
3) Start generating videos
4) Check if ImageMagicks is installed (necessary to run)
5) Exit
Enter your choice: """)
choice = int(input(loopPrint))
changes = ""
if choice == 1:
changeJsonValue("Amount of videos to create: ", data, 'amountOfVideosToMake')
changes = "updated video's to create successfully"
elif choice == 2:
changeJsonValue("Your Pexels API key: ", data, 'pexelsAPIKey')
changes = f"updated your API key successfully to - {data['pexelsAPIKey']}"
elif choice == 3:
verifyData(data)
installed = checkIfImageMagicksIsInstalled()
if installed:
videoloop = mainVideoLoop(data)
if videoloop:
print(f"Succesfully completed making {data['amountOfVideosToMake']} video(s)")
else:
print("An error occurred somewhere above ^ (copy -> sent to developer)")
else:
print("ImageMagicks is needed to run the program...")
input("Press enter to return to the main screen")
elif choice == 4:
checkIfImageMagicksIsInstalled()
input("Press enter to return to the main screen")
elif choice == 5:
print("Exiting...")
quit()
else:
print("Invalid option! Example input: 1")
from videogenerator.
Glad you fixed it, otherwise you should download the release (executable). Then you won't have the python version issue ;)
from videogenerator.
Related Issues (11)
- createVideo() takes 4 positional arguments but 5 were given HOT 2
- can't create more than 10 videos HOT 2
- Music Source HOT 1
- Add openAI custom support (title/description generation) ? HOT 1
- Virus warning HOT 2
- UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d HOT 1
- log file / error file HOT 1
- Add editing video time < 60s HOT 4
- Example video link disappear .Can you update it? HOT 2
- ReWrite the same file on multiple generation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from videogenerator.