modifies readme and adds a comment
Prithu Goswami prithugoswami524@gmail.com
Wed, 07 Mar 2018 22:35:59 +0530
M
README.md
→
README.md
@@ -41,7 +41,7 @@ </ul>
## How to use <ol> - <li>Move all the movie files you want to be tagged into one folder. Make sure that the filename is <strong>only</strong> the title of the movie.</li> + <li>Move all the movie files you want to be tagged into one folder. Make sure that the filename is the correct title of the movie. Year of the title can also be included.</li> <li>If you want subtitles to be embedded into the movie file(s) then add a subtitle file (.srt only) in the same folder named exactly the same as the movie file(s).</li> <li>Download the script (<a href="amt.py">amt.py</a>) and run it in that directory and sit back and relax till it ends executing. How to run the script in that directory? Copy the script in the directory and run it using the command: <pre><code>python amt.py</code></pre>
M
amt.py
→
amt.py
@@ -1,4 +1,4 @@
-"""A Script that tags you movie files. +"""A Script that tags your movie files. Run the script in a folder containing the mp4/mkv movie files with their filename as the movie's title.@@ -22,10 +22,13 @@ from json import JSONDecoder
import tmdbsimple as tmdb from imdbpie import Imdb from mutagen.mp4 import MP4, MP4Cover -import pprint def collect_stream_metadata(filename): + """ + Returns a list of streams' metadata present in the media file passed as + the argument (filename) + """ command = 'ffprobe -i "{}" -show_streams -of json'.format(filename) args = shlex.split(command) p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE,