Changeset 63d747ed665ecd7b4131f510d86c111aa72773fe

Show
Ignore:
Timestamp:
01/06/08 15:39:53 (1 year ago)
Author:
William McBrine <wmcbrine@gmail.com>
git-committer:
William McBrine <wmcbrine@gmail.com> 1199655593 -0500
git-parent:

[c31188611190d180f4a8acf1676221a6822bb580]

git-author:
William McBrine <wmcbrine@gmail.com> 1199655593 -0500
Message:

More cases where only a single replace is desired.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/music/music.py

    rb23d791 r63d747e  
    116116            item = {} 
    117117            item['path'] = f.name 
    118             item['part_path'] = f.name.replace(local_base_path, ''
     118            item['part_path'] = f.name.replace(local_base_path, '', 1
    119119            item['name'] = os.path.split(f.name)[1] 
    120120            item['is_dir'] = f.isdir 
     
    348348                    local_base_path = self.get_local_base_path(handler, query) 
    349349                    start = unquote(start) 
    350                     start = start.replace(os.path.sep + cname, local_base_path) 
     350                    start = start.replace(os.path.sep + cname, 
     351                                          local_base_path, 1) 
    351352                    filenames = [x.name for x in filelist.files] 
    352353                    try: 
  • plugins/photo/photo.py

    rfacfd11 r63d747e  
    281281            item = {} 
    282282            item['path'] = f.name 
    283             item['part_path'] = f.name.replace(local_base_path, ''
     283            item['part_path'] = f.name.replace(local_base_path, '', 1
    284284            item['name'] = os.path.split(f.name)[1] 
    285285            item['is_dir'] = f.isdir 
     
    403403                    local_base_path = self.get_local_base_path(handler, query) 
    404404                    start = unquote(start) 
    405                     start = start.replace(os.path.sep + cname, local_base_path) 
     405                    start = start.replace(os.path.sep + cname, 
     406                                          local_base_path, 1) 
    406407                    filenames = [x.name for x in filelist.files] 
    407408                    try: