View Single Post
Old 01-23-2022, 08:11 AM   #6837
estherflails
Member
estherflails began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jul 2021
Device: none
Hello!
I've been trying to add my own adapter for personal use (the site is in Hungarian so I doubt many people would use it) but I'm having some trouble.

It's an eFiction based site, version 3.5.
Story example: https://merengo.hu/viewstory.php?sid=134752

My code, based on other eFiction adapters:
Spoiler:
Code:
from __future__ import absolute_import
from .base_efiction_adapter import BaseEfictionAdapter

class MerengoHuAdapter(BaseEfictionAdapter):

    @staticmethod
    def getSiteDomain():
        return 'merengo.hu'

    @classmethod
    def getSiteAbbrev(self):
        return 'merengo'

    @classmethod
    def getDateFormat(self):
        return "%Y.%m.%d"

def getClass():
    return MerengoHuAdapter

I also added the site to __init__.py.
This is the error I get when I try to download something: 'NoneType' object has no attribute 'find'

Can anyone tell me what I'm missing or doing wrong? I don't actually have much coding knowledge so this is a little beyond me. 😅 Thank you!
estherflails is offline   Reply With Quote