Skip to content

Commit

Permalink
Merge pull request #4 from alardus/main
Browse files Browse the repository at this point in the history
Updated for Flibusta urls scheme
  • Loading branch information
ryzed committed Jan 31, 2024
2 parents 1057a5e + e399a54 commit 9face61
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
20 changes: 20 additions & 0 deletions opds-opensearch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Флибуста</ShortName>
<Description>Книжное братство</Description>
<Tags></Tags>
<Contact></Contact>
<Url type="application/atom+xml"
indexOffset="0" pageOffset="0"
template="https://flub.flibusta.is/opds/search?searchTerm={searchTerms}&amp;searchType=books&amp;pageNumber={startPage?}"/>
<SearchForm>http://flibusta.is/booksearch</SearchForm>
<LongName>Флибуста</LongName>
<Image width="16" height="16">http://flibusta.is/sites/default/files/favicon.ico</Image>
<Developer></Developer>
<Attribution></Attribution>
<SyndicationRight>open</SyndicationRight>
<AdultContent>false</AdultContent>
<Language>*</Language>
<OutputEncoding>UTF-8</OutputEncoding>
<InputEncoding>UTF-8</InputEncoding>
</OpenSearchDescription>
2 changes: 2 additions & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@

class FlibustaStore(StoreBase):
name = 'Флибуста'
version = (0, 0, 2)
author = 'Sergey Kuznetsov, Eduard Ryzhov, Alexander Bykov'
description = _('Книжное братство')
actual_plugin = 'calibre_plugins.store_flibusta.flibusta:FlibustaStore'
4 changes: 2 additions & 2 deletions src/flibusta.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

class FlibustaStore(StorePlugin):

open_search_url = 'http://flibusta.is/opds-opensearch.xml'
web_url = 'http://flibusta.is/'
open_search_url = 'https://raw.githubusercontent.com/alardus/flibusta-calibre-opds-store/main/opds-opensearch.xml'
web_url = 'https://flub.flibusta.is'

def open(self, parent=None, detail_item=None, external=False):
if not hasattr(self, 'web_url'):
Expand Down

0 comments on commit 9face61

Please sign in to comment.