Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 113715 Details for
Bug 156497
media-tv/freevo-1.7.2 (include dev-python/kaa-base dev-python/kaa-metadata dev-python/kaa-imlib2)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fxdimdb-genre.patch
fxdimdb-genre.patch (text/plain), 2.84 KB, created by
Ben
on 2007-03-18 21:06:57 UTC
(
hide
)
Description:
fxdimdb-genre.patch
Filename:
MIME Type:
Creator:
Ben
Created:
2007-03-18 21:06:57 UTC
Size:
2.84 KB
patch
obsolete
>Index: src/util/fxdimdb.py >=================================================================== >--- freevo-1.7.0/src/util/fxdimdb.py (revision 9278) >+++ freevo-1.7.0/src/util/fxdimdb.py (working copy) >@@ -620,26 +620,39 @@ > continue > try: > infostr = infoh5.next >- key = infostr.string.strip(':').lower() >+ key = infostr.string.strip(':').lower().replace(' ', '_') > nextsibling = nextsibling = infoh5.nextSibling.strip() > sections = info.findAll('a', { 'href' : re.compile('/Sections') }) > lists = info.findAll('a', { 'href' : re.compile('/List') }) > if len(nextsibling) > 0: >- self.info[key] = nextsibling >+ s = nextsibling.replace('&','&') >+ s = s.replace('<','<') >+ s = s.replace('>','>') >+ s = s.replace('\'','"') >+ self.info[key] = s > elif len(sections) > 0: > items = [] > for item in sections: >- items.append(item.string) >- self.info[key] = items >+ s = item.string.replace('&','&') >+ s = s.replace('<','<') >+ s = s.replace('>','>') >+ s = s.replace('\'','"') >+ items.append(s) >+ self.info[key] = ' / '.join(items) > elif len(lists) > 0: > items = [] > for item in lists: >- items.append(item.string) >- self.info[key] = items >+ s = item.string.replace('&','&') >+ s = s.replace('<','<') >+ s = s.replace('>','>') >+ s = s.replace('\'','"') >+ items.append(s) >+ self.info[key] = ' / '.join(items) > except: > pass > > print self.info >+ > # Find Plot Outline/Summary: > # Normally the tag is named "Plot Outline:" - however sometimes > # the tag is "Plot Summary:". Search for both strings. >@@ -659,15 +672,6 @@ > else: > self.info['tagline'] = u'' > >- self.info['genre'] = '' >- genre=soup.find(text='Genre:').parent >- genres = [] >- while genre.findNextSibling('a').string != 'more': >- genres.append(genre.findNextSibling('a').string.strip()) >- genre=genre.findNextSibling('a') >- self.info['genre'] = genres[0] >- for i in genres[1:]: >- self.info['genre'] += ' / ' + i > rating = soup.find(text='User Rating:').findNext(text=re.compile('/10')) > if rating: > votes = rating.findNext('a')
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 156497
:
102905
|
102906
|
102907
|
103127
|
103128
|
110904
|
110906
|
110907
|
110908
|
111262
|
111303
|
111305
|
111306
|
111308
|
113714
| 113715 |
117166
|
117192
|
117369
|
118870
|
118871
|
118873
|
118875
|
120470
|
120609