Ticket #738 (closed bug: fixed)
error "year out of range" in song year
| Reported by: | cbrianso | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Core | Version: | trunk |
| Keywords: | Cc: |
Description
Hi
The reading of the tags of the song files, generate error when the year is inferior to 1900
Exception in thread Thread-14:
Traceback (most recent call last):
File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
self.run()
File "/usr/lib/python2.4/threading.py", line 422, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/carles/projectes-interessants/listen/trunk-0.6/src/widget/jobs_manager.py", line 215, in __run
for text, percent, pulse in self.job():
File "/home/carles/projectes-interessants/listen/trunk-0.6/src//source/local.py", line 200, in job
ListenDB.get_or_create_song(tags,"local",read_from_file=True)
File "/home/carles/projectes-interessants/listen/trunk-0.6/src/library.py", line 374, in get_or_create_song
self.add([s])
File "/home/carles/projectes-interessants/listen/trunk-0.6/src/library.py", line 276, in add
if sanitarize: song.sanitarize()
File "/home/carles/projectes-interessants/listen/trunk-0.6/src/song.py", line 393, in sanitarize
self["#date"] = utils.strdate_to_time(date)
File "/home/carles/projectes-interessants/listen/trunk-0.6/src/utils.py", line 457, in strdate_to_time
return mktime(new_date)
ValueError: year out of range
The patch prevent the error, not solve it
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
