Add adapter_lotrfanfictioncom(Base eFiction).

This commit is contained in:
Jim Miller 2014-10-03 12:45:59 -05:00
parent f297814da2
commit fbb7bb9eaa
3 changed files with 38 additions and 1 deletions

View file

@ -137,6 +137,7 @@ import adapter_fannation
import adapter_sheppardweircom
import adapter_samandjacknet
import adapter_csiforensicscom
import adapter_lotrfanfictioncom
## This bit of complexity allows adapters to be added by just adding
## importing. It eliminates the long if/else clauses we used to need

View file

@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
# Copyright 2014 Fanficdownloader team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Software: eFiction
from base_efiction_adapter import BaseEfictionAdapter
class TheLOTRFanFictionSiteAdapter(BaseEfictionAdapter):
@staticmethod
def getSiteDomain():
return 'lotrfanfiction.com'
@classmethod
def getSiteAbbrev(seluuf):
return 'lotrff'
@classmethod
def getDateFormat(self):
return "%m/%d/%y"
def getClass():
return TheLOTRFanFictionSiteAdapter

View file

@ -97,7 +97,7 @@ class BaseEfictionAdapter(BaseSiteAdapter):
In many cases, it's '/archive' or '/fanfiction'
"""
return "/"
return ""
@classmethod
def getViewStoryPhpName(cls):