mirror of
https://github.com/JockeTF/fimfarchive.git
synced 2024-11-22 05:17:59 +01:00
Add meta format flavor
This commit is contained in:
parent
bdb7382e4e
commit
ab2f2f3f88
2 changed files with 11 additions and 1 deletions
|
@ -25,7 +25,7 @@ Fimfiction fetcher.
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from fimfarchive.exceptions import InvalidStoryError, StorySourceError
|
from fimfarchive.exceptions import InvalidStoryError, StorySourceError
|
||||||
from fimfarchive.flavors import StorySource, DataFormat, MetaPurity
|
from fimfarchive.flavors import StorySource, DataFormat, MetaFormat, MetaPurity
|
||||||
|
|
||||||
from .base import Fetcher
|
from .base import Fetcher
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@ class FimfictionFetcher(Fetcher):
|
||||||
flavors = frozenset((
|
flavors = frozenset((
|
||||||
StorySource.FIMFICTION,
|
StorySource.FIMFICTION,
|
||||||
DataFormat.HTML,
|
DataFormat.HTML,
|
||||||
|
MetaFormat.ALPHA,
|
||||||
MetaPurity.DIRTY,
|
MetaPurity.DIRTY,
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@ __all__ = (
|
||||||
'Flavor',
|
'Flavor',
|
||||||
'StorySource',
|
'StorySource',
|
||||||
'DataFormat',
|
'DataFormat',
|
||||||
|
'MetaFormat',
|
||||||
'MetaPurity',
|
'MetaPurity',
|
||||||
'UpdateStatus',
|
'UpdateStatus',
|
||||||
)
|
)
|
||||||
|
@ -75,6 +76,14 @@ class DataFormat(Flavor):
|
||||||
HTML = ()
|
HTML = ()
|
||||||
|
|
||||||
|
|
||||||
|
class MetaFormat(Flavor):
|
||||||
|
"""
|
||||||
|
Indicates the general structure of story meta.
|
||||||
|
"""
|
||||||
|
ALPHA = ()
|
||||||
|
BETA = ()
|
||||||
|
|
||||||
|
|
||||||
class MetaPurity(Flavor):
|
class MetaPurity(Flavor):
|
||||||
"""
|
"""
|
||||||
Indicates if story meta has been sanitized.
|
Indicates if story meta has been sanitized.
|
||||||
|
|
Loading…
Reference in a new issue