dbr / tvnamer

Automatic TV episode file renamer, uses data from thetvdb.com via tvdb_api
https://pypi.python.org/pypi/tvnamer/
The Unlicense
912 stars 115 forks source link

main.py line 31 (episode.fullpath) AttributeError #1

Closed queeup closed 15 years ago

queeup commented 15 years ago

I use tvnamer without install.

$ ls -h
cache.py     main.py    tools                tvdb_ui.py              utils.py
cache.pyc    Rakefile   tvdb_api.py          tvdb_ui.pyc             utils.pyc
config.py    readme.md  tvdb_api.pyc         tvnamer_exceptions.py
config.pyc   setup.py   tvdb_exceptions.py   tvnamer_exceptions.pyc
__init__.py  tests      tvdb_exceptions.pyc  tvnamer_ideas.txt
$ python -V
Python 2.5.2
$ uname -a
Linux xbmc 2.6.27-14-generic #1 SMP Mon Aug 31 13:01:41 UTC 2009 i686 GNU/Linux
$ ./main.py -v ../../.xbmc/downloads/Dizi/Tokyo\ Magnitude/
####################
# Starting tvnamer
Invalid filename /home/xbmc/.xbmc/downloads/Dizi/Tokyo Magnitude/tvshow.nfo
# Found 12 episodes
# Processing [BSS]_Tokyo_Magnitude_8.0_-_02_[0E5C4A40].mkv
2009-09-28 18:35:03,115) DEBUG Getting show tokyo magnitude 8 0
2009-09-28 18:35:03,117) DEBUG Searching for show tokyo%20magnitude%208%200
2009-09-28 18:35:03,117) DEBUG Retrieving URL http://www.thetvdb.com/api/GetSeries.php?seriesname=tokyo%20magnitude%208%200&language=en
2009-09-28 18:35:03,121) DEBUG URL http://www.thetvdb.com/api/GetSeries.php?seriesname=tokyo%20magnitude%208%200&language=en was cached in /tmp/tvdb_api/6e3eeae8fe5d82389d5d656100dde169.body
2009-09-28 18:35:03,122) DEBUG Series result returned zero
Show Tokyo Magnitude 8 0 not found on www.thetvdb.com
Traceback (most recent call last):
  File "./main.py", line 177, in 
    main()
  File "./main.py", line 170, in main
    tvnamer(paths = args)
  File "./main.py", line 111, in tvnamer
    processFile(tvdb_instance, episode)
  File "./main.py", line 31, in processFile
    cnamer = Renamer(episode.fullpath)
AttributeError: 'NoneType' object has no attribute 'fullpath'
$
dbr commented 15 years ago

Opps. I had a fix for this but hadn't yet commited it. It's in the repository now..

The tvnamer is still under development, and isn't particularly stable just now. You may be better-off with the previous version of tvnamer in http://github.com/dbr/tvdb_api - you can get it via easy install tvnamer (although it didn't support anime filenames)

queeup commented 15 years ago

Yea i know but previous version not support Anime series :D