Changeset 26167debc2a22912fbf5e501314d293ddb24ecf8

Show
Ignore:
Timestamp:
04/16/09 16:50:06 (4 years ago)
Author:
Guillaume Pellerin <yomguy@…>
Children:
0af5012d52e3eca59df3d48b806e380d35a7d48a
Parents:
7e26f5c44f2f8afae65b6429d7505f8227bb0a6b
git-committer:
Guillaume Pellerin <yomguy@parisson.com> / 2009-04-16T14:50:06Z+0000
Message:

fix multi extension

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tools/tools.py

    r7e26f5c r26167de  
    3232    file_name = media.split(os.sep)[-1] 
    3333    file_title = file_name.split('.')[:-1] 
    34     try: 
    35         file_title = file_title[0] 
    36     except: 
    37         pass 
     34    file_title = '.'.join(file_title) 
    3835    file_ext = file_name.split('.')[-1] 
    3936    return file_name, file_title, file_ext