Skip to content

Error after enter movies directory #1

@CrisBMoya

Description

@CrisBMoya

Hi, I recently started to use the Random Gif Maker script, but It throws me an error after the movies directory. Don't know if I'm making something wrong or if it's something wrong with the script.

This is how I run it:

biolinuxpc@BioLinuxPC[biolinuxpc] python /home/biolinuxpc/Downloads/random-gif-maker-master/randomGif.py 
Enter Path to Movie Directory: /home/biolinuxpc/Videos
Movies Path:  /home/biolinuxpc/Videos
Traceback (most recent call last):
  File "/home/biolinuxpc/Downloads/random-gif-maker-master/randomGif.py", line 74, in <module>
    moviename, hour, mins, secs = makeGif(var)
  File "/home/biolinuxpc/Downloads/random-gif-maker-master/randomGif.py", line 38, in makeGif
    moviename = moviepath[root.__len__():].split("/")[2] #Remove Root Directory and Subfolder
IndexError: list index out of range

Inside my Videos folder is a single video named Test.mkv

I already have tried with:

/home/biolinuxpc/Videos
/home/biolinuxpc/Videos/
/home/biolinuxpc/Videos/Test.mkv

And some other variances. Didn't work.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions