Example #1
0
    def load_shows(self):

        #        folder_manager = FolderManager()
        #        folder_manager.add_tv_folder(r"R:\Series")
        #        folder_manager.add_tv_folder(r"S:\Series")
        #        folder_manager.add_tv_folder(r"H:\Series")
        #        folder_manager.scan_tv_folders()
        #        showlist = folder_manager.tv_show_list
        #        contents = ShowList(showlist)

        folder_manager = FolderManager()
        folder_manager.add_tv_folder(r"R:\Series")
        folder_manager.add_tv_folder(r"S:\Series")
        folder_manager.scan_tv_folders()
        showlist = folder_manager.tv_show_list

        art_manager = LocalArtworkFinder()
        for show in showlist:
            art_manager.read_local_artwork(show)

        contents = ShowList(showlist)

        self.listView_2.setModel(contents)

        self.show_selection_model = QtGui.QItemSelectionModel(contents, self.listView_2)
        self.listView_2.setSelectionModel(self.show_selection_model)

        self.show_selection_model.currentChanged.connect(self.change_images)
Example #2
0
    def load_movies(self):

        folder_manager = FolderManager()
        folder_manager.add_movie_folder(r"P:\Peliculas")
        folder_manager.add_movie_folder(r"R:\Peliculas")
        folder_manager.add_movie_folder(r"H:\Peliculas")
        folder_manager.scan_movie_folders()
        movie_list = folder_manager.movie_list
        contents = ShowList(movie_list)

        art_manager = LocalArtworkFinder()
        for movie in movie_list:
            art_manager.find_local_movie_artwork(movie)

        self.movieList.setModel(contents)
        self.movieList.clicked.connect(self.change_movie_images)
Example #3
0
#!usr/bin/env python

"""
folder scanning tests

"""

import sys

from mediamanager.manager import FolderManager, LocalArtworkFinder,\
    LocalArtworkSaver




folder_manager = FolderManager()
folder_manager.add_movie_folder(r"H:\test")
folder_manager.scan_movie_folders()
showlist = folder_manager.movie_list

art_finder = LocalArtworkFinder()
art_saver = LocalArtworkSaver()

for movie in showlist:
    art_finder.find_local_movie_artwork(movie)

for movie in showlist:
    art_saver.set_poster(movie,r"H:\Peliculas\Beasts of the Southern Wild (2012) [720p] [BluRay]\poster.jpg")
    art_saver.set_banner(movie,r"R:\Series\2 Broke Girls\banner.jpg")
    art_saver.set_fanart(movie,r"R:\Series\2 Broke Girls\fanart.jpg")