Re: [Pytvshows-commit] SF.net SVN: pytvshows: [20] trunk/pytvshows/__init__.py
Status: Beta
Brought to you by:
phatmonkey
|
From: Ben F. <be...@fi...> - 2008-03-10 18:12:34
|
I have changed the logging in rv 19 so only downloaded episodes are errors/warnings will be logged to the log file. Would you like an option to change the verbosity of the log file? Seem a bit redundant to me as long as people know what will be logged. Ben On 9 Mar 2008, at 22:47, Brandon Gabbard wrote: > Red alert. This just broke mine. I run pytvshows and get nothing. No > output and no log file except for a 0 byte file. > > > On Mar 9, 2008, at 3:50 PM, pha...@us... wrote: > >> Revision: 20 >> http://pytvshows.svn.sourceforge.net/pytvshows/?rev=20&view=rev >> Author: phatmonkey >> Date: 2008-03-09 13:50:08 -0700 (Sun, 09 Mar 2008) >> >> Log Message: >> ----------- >> Hopefully fixed bug where correct quality torrent wouldn't be >> downloaded >> on release. I will confirm this is fixed when the next episode of >> Lost >> comes out! >> >> Modified Paths: >> -------------- >> trunk/pytvshows/__init__.py >> >> Modified: trunk/pytvshows/__init__.py >> =================================================================== >> --- trunk/pytvshows/__init__.py 2008-03-09 15:44:13 UTC (rev 19) >> +++ trunk/pytvshows/__init__.py 2008-03-09 20:50:08 UTC (rev 20) >> @@ -366,16 +366,12 @@ >> #elif len(self.torrents) == 1: >> # raise EpisodeNoWorkingTorrentsError >> >> - # Find the highest quality available in the feed. This is >> to avoid >> + # Use the highest quality available in the feed. This is to >> avoid >> # delays trying to find a higher quality torrent if there's >> really >> # no chance of finding one. >> # The only disadvantage to this method is when a higher >> quality >> # episode does actually pop up, we will probably miss the >> first one. >> - best_quality = 0 >> - for torrent in self.torrents: >> - if torrent.quality > best_quality: >> - best_quality = torrent.quality >> - wanted_quality = min(quality, best_quality) >> + wanted_quality = min(quality, self.show.best_quality) >> shortlist = [] >> # First try : download the episodes for which we have the >> wanted >> # quality >> @@ -573,6 +569,7 @@ >> "datetime.datetime object" >> self.rss = None >> self.episodes = {} >> + self.best_quality = 0 >> self.specials = {} # FIXME QUICK!!!: actually download these >> >> def save_new_episodes(self): >> @@ -781,6 +778,8 @@ >> """Given title string, returns quality integer.""" >> for key, value in config["quality_matches"].items(): >> if key in s: >> + if value > self.best_quality: >> + self.best_quality = value >> return value >> return 0 >> >> >> >> This was sent by the SourceForge.net collaborative development >> platform, the world's largest Open Source development site. >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Pytvshows-commit mailing list >> Pyt...@li... >> https://lists.sourceforge.net/lists/listinfo/pytvshows-commit > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pytvshows-commit mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pytvshows-commit |