View Single Post
Old 06-03-2021, 04:03 AM   #5965
Lyen
Junior Member
Lyen began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2016
Device: Kindle
The current Scribblehub adapter isn't grabbing the fandom tags when a story is fanfic.

I modified my personal adapter and got it to work but there is probably a better way to do it.

Code:
       # Fandoms
        if soup.find('div', string="Fandom"):
            fandoms = soup.find('div', string="Fandom").next_sibling.find_all('a')
            for fandom in fandoms:
                self.story.addToList('fandoms', stripHTML(fandom))
Lyen is offline   Reply With Quote