GithubHelp home page GithubHelp logo

Comments (2)

KalvinThien avatar KalvinThien commented on August 28, 2024

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.

DuxSec avatar DuxSec commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.