pax_global_header 0000666 0000000 0000000 00000000064 13436457030 0014517 g ustar 00root root 0000000 0000000 52 comment=3863a14eedf17551743a8bbccf0237874d7f4a16
woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-freeteknomusic/ 0000775 0000000 0000000 00000000000 13436457030 0024101 5 ustar 00root root 0000000 0000000 woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-freeteknomusic/modules/ 0000775 0000000 0000000 00000000000 13436457030 0025551 5 ustar 00root root 0000000 0000000 woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-freeteknomusic/modules/freeteknomusic/ 0000775 0000000 0000000 00000000000 13436457030 0030574 5 ustar 00root root 0000000 0000000 __init__.py 0000664 0000000 0000000 00000001600 13436457030 0032623 0 ustar 00root root 0000000 0000000 woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-freeteknomusic/modules/freeteknomusic # -*- coding: utf-8 -*-
# Copyright(C) 2017 Vincent A
#
# This file is part of a weboob module.
#
# This weboob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This weboob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this weboob module. If not, see .
from __future__ import unicode_literals
from .module import FreeteknomusicModule
__all__ = ['FreeteknomusicModule']
browser.py 0000664 0000000 0000000 00000002713 13436457030 0032555 0 ustar 00root root 0000000 0000000 woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-freeteknomusic/modules/freeteknomusic # -*- coding: utf-8 -*-
# Copyright(C) 2017 Vincent A
#
# This file is part of a weboob module.
#
# This weboob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This weboob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this weboob module. If not, see .
from __future__ import unicode_literals
from weboob.browser import PagesBrowser, URL
from .pages import FolderPage
class FreeteknomusicBrowser(PagesBrowser):
BASEURL = 'http://archive.freeteknomusic.org/'
folder = URL('/', FolderPage)
def ls_content(self, split_path):
self.location('/' + '/'.join(split_path))
for el in self.page.iter_dirs():
yield el
for el in self.page.iter_files():
yield el
def get_file(self, id):
split_path = id.split('/')[:-1]
self.location('/' + '/'.join(split_path))
id = 'audio.%s' % id
for el in self.page.iter_files():
if el.id == id:
return el
favicon.png 0000664 0000000 0000000 00000002663 13436457030 0032657 0 ustar 00root root 0000000 0000000 woob-3863a14eedf17551743a8bbccf0237874d7f4a16-modules-freeteknomusic/modules/freeteknomusic PNG
IHDR @ @ % pHYs tIME
R> iTXtComment Created with GIMPd.e )IDAThZ=o8@TP ^@.TpB
*@6DdHeŲ
b}#gͼ?O^O<9{csιBq 99 ι뺮3O)RJ)i,4Mu9!DYp é1Zk]U&