Updated kodi settings on Lenovo

This commit is contained in:
2026-03-22 22:28:43 +01:00
parent 725dfa7157
commit 32b5a81da6
10925 changed files with 575678 additions and 5511 deletions

View File

@@ -0,0 +1,619 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

View File

@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="metadata.movies.thetvdb.com.v4.python" name="The TVDB v4 (Movies)"
version="1.0.11" provider-name="TVDB Team">
<requires>
<import addon="xbmc.metadata" version="2.1.0" />
<import addon="xbmc.python" version="3.0.0" />
</requires>
<extension point="xbmc.metadata.scraper.movies" language="en" library="thetvdb.py" />
<extension point="xbmc.addon.metadata">
<summary lang="af_ZA">Gaan haal TV vertoning metadata vanaf TheTVDB.com</summary>
<summary lang="be_BY">Fetch TV show metadata from TheTVDB.com</summary>
<summary lang="bg_BG">Изтегля информация за ТВ Сериали от TheTVDB.com</summary>
<summary lang="ca_ES">Obté les metadades de les sèries de televisió de TheTVDB.com</summary>
<summary lang="cs_CZ">Získat metadata televizního pořadu z TheTVDB.com</summary>
<summary lang="cy_GB">Estyn metadata sioeau Teledu o TheTVDB.com</summary>
<summary lang="da_DK">Hent metadata til TV-serier fra TheTVDB.com</summary>
<summary lang="de_DE">Lade TV-Show-Metadaten von TheTVDB.com</summary>
<summary lang="el_GR">Λήψη μετα-δεδομένων σειρών από το TVDB.com</summary>
<summary lang="en_GB">Fetch TV show and Movie metadata from TheTVDB.com</summary>
<summary lang="en_NZ">Fetch TV show and Movie metadata from TheTVDB.com</summary>
<summary lang="en_US">Fetch TV show and Movie metadata from TheTVDB.com</summary>
<summary lang="es_ES">Recuperar metadatos de series de TV en TheTVDB.com</summary>
<summary lang="es_AR">Recuperar metadatos de series de TV en TheTVDB.com</summary>
<summary lang="es_MX">Obtener metadata de Series desde TheTVDB.com</summary>
<summary lang="et_EE">Hangi tv seriaalide metainfo TheTVDB.com-ist</summary>
<summary lang="fi_FI">Nouda TV-ohjelmien tietoja TheTVDB.com -sivustolta</summary>
<summary lang="fr_FR">Collecter les métadonnées des séries TV depuis TheTVDB.com</summary>
<summary lang="fr_CA">Récupérer les métadonnées pour les séries télé depuis TVDB.com</summary>
<summary lang="gl_ES">Obter os metadatos das series de TV dende TheTVDB.com</summary>
<summary lang="he_IL">הבא מידע </summary>
<summary lang="hi_IN">द टी भी दी बी.कॉम से टी वी प्रदर्शन लाए</summary>
<summary lang="hr_HR">Nabavi informacije za TV serije s TheTVDB.com</summary>
<summary lang="hu_HU">TV műsor információk a TheTVDB.com-ról</summary>
<summary lang="id_ID">Ambil metadata Serial TV dari TheTVDB.com</summary>
<summary lang="is_IS">Sækja Sjónvarpsþátta lýsigögn frá TheTVDB.com</summary>
<summary lang="it_IT">Scarica informazioni programma TV da TheTVDB.com</summary>
<summary lang="ja_JP">TheTVDB.com からTV番組メタデータを取得</summary>
<summary lang="ka">სატელევიზიო გადაცემების მეტაინფორმაციის გადმოტანა TVDB.com-დან</summary>
<summary lang="ko_KR">TheTVDB.com 에서 TV 쇼 정보 가져오기</summary>
<summary lang="lt_LT">Parsiųsti TV šou (serialo) metaduomenis iš TheTVDB.com</summary>
<summary lang="mk_MK">Превземи ТВ шоу метаподаток од TVDB.com</summary>
<summary lang="ms_MY">Dapatkan data meta rancangan TV dari TheTVDB.com</summary>
<summary lang="my_MM">TV show နှင့်ပတ်သက်သည့် အချက်အလက်များကို TheTVDB.com မှ ရယူရန်</summary>
<summary lang="nl_NL">Seriemetadata ophalen van TheTVDB.com</summary>
<summary lang="nb_NO">Hent TV program data fra TheTVDB.com</summary>
<summary lang="pl_PL">Pobieraj dane o serialach telewizyjnych z TheTVDB.com </summary>
<summary lang="pt_PT">Obtenha metadados para séries TV a partir de TVDB.com</summary>
<summary lang="pt_BR">Obtenha dados dos seriados do TheTVDB.com</summary>
<summary lang="ro_RO">Obţineţi datele despre seriale de la TheTVDB.com</summary>
<summary lang="ru_RU">Загрузка информации о ТВ-шоу с TheTVDB.com</summary>
<summary lang="se">Skrapa för TV-seriemetadata från TVDB.com</summary>
<summary lang="sk_SK">Získať metadáta o televíznej relácii zo stránky TheTVDB.com</summary>
<summary lang="sl_SI">Prenesite informacije o TV serijah z TheTVDB.com</summary>
<summary lang="sq_AL">Merr "metadata" mbi TV serialet nga TheTVDB.com</summary>
<summary lang="sv_SE">Hämta TV-seriemetadata från TVDB.com</summary>
<summary lang="ta_IN">TheTVDB.com இருந்து தொலைக்காட்சி நிகழ்ச்சி மெட்டாடேட்டா எடுக்கபடுகின்றது</summary>
<summary lang="th_TH">เรียกข้อมูลหลักของรายการทีวี จาก TheTVDB.com</summary>
<summary lang="tr_TR">TV programı meta verilerini TheTVDB.com'dan al</summary>
<summary lang="uk_UA">Отримання відомостей про серіали із TheTVDB.com</summary>
<summary lang="vi_VN">Trình lấy TV show từ TheTVDB.com</summary>
<summary lang="zh_CN">从 TheTVDB.com 获取电视剧集信息</summary>
<summary lang="zh_TW">從 TheTVDB.com 取得電視節目資訊</summary>
<description lang="af_ZA">TheTVDB.com is 'n TV Skraper. Die werf is 'n massiewe oop databasis wat deur enige iemand verander kan word en bevat vol meta data vir baie vertonings in verskillende tale. Alle inhoud en prente op die werf is bygedra deur sy gebruikers vir sy gebruikers en het 'n hoë standaard van kwaliteit. Die databasis skema en webruimte is oopbron onder die GPL.</description>
<description lang="be_BY">TheTVDB.com is a TV Scraper. The site is a massive open database that can be modified by anybody and contains full meta data for many shows in different languages. All content and images on the site have been contributed by their users for users and have a high standard or quality. The database schema and website are open source under the GPL.</description>
<description lang="bg_BG">TheTVDB.com предоставя информация за ТВ Сериали. Сайтът е масивна отворена база данни, която може да бъде променяна от всеки и съдържа пълни мета данни за много сериали на различни езици. Цялото съдържание и изображенията в сайта са предоставени от неговите потребители за други потребители и имат високо ниво на качество. Структурата на базата данни и уеб сайта са създадени с отворен код под GPL лиценз.</description>
<description lang="ca_ES">TheTVDB.com és un raspador de TV. El lloc és una base de dades oberta massiva que pot ser modificat per qualsevol persona i conté metadades completes de molts programes en diferents idiomes. Tot el contingut i imatges en el lloc han estat aportat pels usuaris per als usuaris i tenen un alt nivell o qualitat. L'esquema de la base de dades i la pàgina web són de codi obert sota la llicència GPL.</description>
<description lang="cs_CZ">TheTVDB.com je zdroj metadat pro televizní pořady. Stránka je masivní otevřená databáze, kterou může kdokoliv upravovat a obsahuje veškerá metadata v různých jazycích k mnoha pořadům. Všechen obsah a obrázky jsou poskytnuty uživateli pro uživatele a mají vysokou kvalitu. Návrhový vzor databáze a webová stránka jsou svobodný software licencovaný pod GPL.</description>
<description lang="cy_GB">Mae TheTVDB.com yn Grafwr Teledu. Mae'r wefan yn gronfa ddata anferthol agored y mae modd ei addasu gan unrhyw un ac yn cynnwys meta data llaw llawer o sioeau mewn ieithoedd gwahanol. Mae'r holl gynnwys a delweddau ar y wefan wedi ei gyfrannu gan eu defnyddwyr ac i safon uchel . Mae cynllun y gronfa ddata a'r wefan yn god agored o dan y GPL.</description>
<description lang="da_DK">TheTVDB.com er en TV-scraper. Siden er en massiv åben database, som alle kan modificere, og den indeholder fyldestgørende metadata for mange serier på forskellige sprog. Alt indhold og alle billeder på siden er tilføjet af brugere og har en høj standard eller kvalitet. Databasens model og webside er open source under GPL.</description>
<description lang="de_DE">TheTVDB.com ist ein Scraper für TV-Shows. Die Seite ist eine riesige, offene Datenbank, die von jedem angepasst werden kann und weitreichende Metadaten für viele TV-Shows, in verschiedenen Sprachen, enthält. Alle Inhalte und Bilder dieser Seite wurden von Benutzern für Benutzer zusammengetragen und folgen dabei dem hohen Standard für Qualität. Das Datenbankschema sowie die Webseite sind nach der GPL-Lizenvereinbarung OpenSource.</description>
<description lang="el_GR">Το TVDB.com είναι ένα Scraper Τηλεόρασης. Η ιστοσελίδα είναι μία τεράστια ανοικτή βάση δεδομένων η οποία μπορεί να τροποποιηθεί από τον καθένα και περιέχει πλήρη μετα-δεδομένα για πολλές σειρές σε διάφορες γλώσσες. Όλο το περιεχόμενο και οι εικόνες στην ιστοσελίδα προέρχονται από τους χρήστες του, και έχουν υψηλά πρότυπα ποιότητας. Το σχήμα της βάσης δεδομένων και της ιστοσελίδας είναι ανοικτού κώδικα υπό το GPL.</description>
<description lang="en_GB">TheTVDB.com plugin is a TV scraper built on one of the longest-running community-driven TV and Movie databases. With content metadata available for hundreds of thousands of TV shows and Movies, the site is a complete and accurate source for streamlining the metadata in your Kodi library. TheTVDB is free to access and is actively maintained by the thousands of community members that contribute to it.</description>
<description lang="en_NZ">TheTVDB.com plugin is a TV scraper built on one of the longest-running community-driven TV and Movie databases. With content metadata available for hundreds of thousands of TV shows and Movies, the site is a complete and accurate source for streamlining the metadata in your Kodi library. TheTVDB is free to access and is actively maintained by the thousands of community members that contribute to it.</description>
<description lang="en_US">TheTVDB.com plugin is a TV scraper built on one of the longest-running community-driven TV and Movie databases. With content metadata available for hundreds of thousands of TV shows and Movies, the site is a complete and accurate source for streamlining the metadata in your Kodi library. TheTVDB is free to access and is actively maintained by the thousands of community members that contribute to it.</description>
<description lang="es_ES">TheTVDB.com es un scraper de TV. El sitio es una enorme base de datos abierta que puede ser modificada por cualquiera y que contiene metadatos completos de muchas series en diferentes idiomas. Todos los contenidos e imágenes del sitio han sido aportados por sus usuarios y tienen una alta calidad. El esquema de base de datos y sitio web son de código abierto bajo la licencia GPL.</description>
<description lang="es_AR">TheTVDB.com es un scraper de TV. El sitio es una enorme base de datos abierta que puede ser modificada por cualquiera y que contiene metadatos completos de muchas series en diferentes idiomas. Todos los contenidos e imágenes del sitio han sido aportados por sus usuarios y tienen una alta calidad. El esquema de base de datos y sitio web son de código abierto bajo la licencia GPL.</description>
<description lang="es_MX">TheTVDB.com es un scraper de series de TV. Este sitio es una base de datos masiva y abierta que puede ser modicada por cualquiera y contiene metadata completa para muchas series en diferentes lenguajes. Todo el contenido e imágenes del sitio han sido contribuidos por sus usuarios para usuarios, los cuales tienen un alto estándar de calidad. El esquema de la base de datos y el sitio web son de código abierto bajo GPL.</description>
<description lang="et_EE">TheTVDB.com on seriaalide kraabits. See leht on mahukas avatud andmebaas mida saavad täiendad kõik ja sisaldab palju metaandmeid suure hulga seriaalide kohta. Kõik sisu ja pildid lehel on kasutajate poolt sisestatud ning vastavad kõrgele kvaliteedile. TheTVDB.com andmebaasi struktuur ja kood on avaldatud GPLi all.</description>
<description lang="fi_FI">TheTVDB.com on TV-ohjelmatietojen lataaja. Sivusto on massiivinen avoin tietokanta, jonka tietoja kaikki pystyy muokkaamaan ja se sisältää täydet tiedot monista TV-ohjelmista usealla eri kielellä. Kaikki sivuston sisältö ja kuvat on korkealaatuisia ja käyttäjien lahjoittamia. Tietokanta ja sivusto ovat GPL-lisenssin alaisia.</description>
<description lang="fr_FR">TheTVDB.com est un collecteur TV. Le site est une immense base de données libre pouvant être modifiée par tout le monde et contenant toutes les informations de nombreuses séries en différentes langues. Les informations et images du site proviennent de contributions d'utilisateurs pour les usagers et sont d'excellentes qualités. Le schéma de la base de données et le site Web sont en open source sous licence GPL.</description>
<description lang="fr_CA">TheTVDB est un extracteur pour séries télé. Ce site est une énorme base de données ouverte qui peut être modifiée par n'importe qui et qui comprend des métadonnées complètes pour beaucoup de séries télé dans plusieurs langues. Tout le contenu et les images présentes sur le site ont été fournis par les utilisateurs et possèdent un haut niveau de qualité. La structure de la base de données et le site Web sont libres et sous licence GPL.</description>
<description lang="gl_ES">TheTVDB.com é un Scraper de TV. O sitio é unha enorme base de datos aberta que calquera pode modificar e contén todos os metadatos de centos de series en diferentes idiomas. Todo o contido e imaxes do sitio foi proporcionado polos seus usuarios e amosa un grande estándar de calidade. O esquema da base de datos e o sitio web son de código aberto baixo licenza GPL.</description>
<description lang="he_IL">TheTVDB.com הוא סקרייפר עבור תוכניות טלוויזיה. אתר זה הוא מסד נתונים פתוח עצום אשר כל אחד יכול לערוך ומכיל פרטים מלאים להרבה תוכניות טלוויזיה בשפות שונות. כל התכנים והתמונות באתר נתרמו ע"י המשתמשים שלה עבור משתמשים וישנו סטנדרט גבוה או איכות גבוהה. תכנית המסד נתונית והאתר הם בקוד פתוח תחת ה-GPL.</description>
<description lang="hi_IN">टीभीडीबी एक टीभी स्क्रॅपर है.येह साइट एक बहुत बरा खुला डेटाबेस है जो किसी से भी रूपांतर्न किया जा सकता है और यह ह्र भासाओ मे सभी प्रदर्शन के लिए मीटा दाता रखता है.सभी सामग्री और चित्र यूज़र के लिए यूज़र का योगदान है और उच्च मानक या गुणवत्ता रखता है.डेटाबेस स्कीम और वेबसाइट जीपील् की अंतर्गत ओपन सोर्स है.</description>
<description lang="hr_HR">TheTVDB.com je sakupljač informacija za TV programe. Stranica je ogromna otvorena baza podataka koju može bilo tko mijenjati i sadrži mnogo informacija za različite serije na različitim jezicima. Sav sadržaj i slike postavili su korisnici za ostale korisnike i visoke su kvalitete. Shema baze podataka i web stranice su otvorenog kôda pod GPL licencom.</description>
<description lang="hu_HU">A TheTVDB.com egy TV műsor leolvasó. Az oldal egy hatalmas adatbázis amit bárki szabadon módosíthat és rengeteg TV műsor adatait tartalmazza különböző nyelveken. A minőségi tartalom és képanyag ezen az oldalon felhasználóktól származik más felhasználók számára. Az adatbázisstruktúra és a weblap nyílt forráskódú a GPL licenc alatt.</description>
<description lang="id_ID">TheTVDB.com adalah pengais Serial TV. Situs ini adalah database yang sangat besar dan terbuka yang dapat dimodifikasi oleh semua orang dan mengandung meta data yang penuh untuk banyak Serial TV di bahasa yang berbeda. Semua konten dan gambar dalam situ ini dikontribusikan oleh penggunanay untuk pengguna dan memiliki standar dan kualitas tinggi. Skema database dan situs adalah open-source dengan lisensi GPL.</description>
<description lang="is_IS">TheTVDB.com er sjónvarpsskafa.. Þessi veita er risastór opinn gagnagrunnur sem allir geta breytt og er með öll lýsigögn fyrir fullt af þáttum á mörgum tungumálum. Allt efni og myndir á veitunni er sett inn af notendum fyrir notendur og eru í háum staðli eða gæðum. Uppsetning gagnagrunnsins og vefsíðan eru 'open source under the GPL'</description>
<description lang="it_IT">TheTVDB.com è uno scraper di programmi TV. Questo sito è un enorme database che può essere modificato da chiunque, e contiene tutte le informazioni di molti show in varie lingue. Tutti i contenuti e le immagini sul sito sono stati forniti dagli utenti, ed hanno un alto standard di qualità. Lo schema del database e il sito internet sono open source sotto licenza GPL.</description>
<description lang="ja_JP">TheTVDB.com は TV スクレーパーです。本サイトは強力でオープンなデータベースで、誰もが追加修正可能です。テレビ番組のメタデータは多くの言語で提供されています。番組情報や画像データはユーザにより提供され、そのクオリティは非常に高いものです。データベーススキーマと web サイトは GPL ライセンスのオープンソースです。</description>
<description lang="ko_KR">TheTVDB.com 은 TV 정보수집기입니다. 위 사이트는 이용자가 직접 수정할 수 있으며 다양한 언어의 완전한 메타 데이터를 포함하는 방대한 오픈 데이터베이스입니다. 사이트의 모든 콘텐츠와 이미지들은 사이트 이용자들이 다른 이용자들을 위해 제공한 것이며 높은 품질을 가지고 있습니다. 웹사이트와 데이터베이스 스키마는 GLP 오픈소스입니다.</description>
<description lang="lt_LT">TheTVDB.com yra TV Scraper. Ši svetainė yra didžiulė atvira duomenų bazė, kuria gali pakeisti bet kas ir kurioje visa meta duomenis bazė daugelo šou įvairiomis kalbomis. Visas svetainės turinys atnaujinamas/papyldomasvartotojų ir turi aukštą kokybės standartą. Duomenų bazės ir svetainės yra atviro kodo pagal GPL standartą.</description>
<description lang="mk_MK">TheTVDB.com is a TV Scraper. The site is a massive open database that can be modified by anybody and contains full meta data for many shows in different languages. All content and images on the site have been contributed by their users for users and have a high standard or quality. The database schema and website are open source under the GPL.</description>
<description lang="ms_MY">TheTVDB.com adalah Pengikis TV. Laman tersebut merupakan pangkalan data terbuka yang amat besar dan boleh diubahsuai oleh sesiapa pun dan juga mengandungi data meta pelbagai rancangan dalam pelbagai bahasa. Semua kandungan dan imej di laman ini disumbang oleh pengguna mereka untuk pengguna mereka dan mempunyai piawaian dan kualiti yang amat tinggi. Skema pangkalan data dan laman adalah sumber terbuka dibawah GPL.</description>
<description lang="my_MM">TheTVDB.com သည် TV Scraper ဖြစ်သည်။ database ထဲတွင် အချက်အလက်များစွာရှိနေပြီး မည်သူမဆို မည်သည့် ဘာသာစကားနှင့် မဆို ဝင်ရောက်ပြုပြင် နိုင်သည်။ အချက်အလက်များနှင့် ပုံများသည် ၎င်းတို့၏ အသုံးပြုသူများမှ အခြားအသုံးပြုသူများအတွက် ပံ့ပိုးထားသော အဆင်မြင့် အရေအသွေးများဖြစ်သည်။ website နှင့် database သည် open source GPL လိုင်စင် ကို အသုံးပြုထားသည်။</description>
<description lang="nl_NL">TheTVDB.com is een seriescraper. De site is een gigantische open databank die iedereen kan aanpassen en uitbreiden, en biedt metadata aan voor TV-series in verschillende talen. Alle inhoud en afbeeldingen zijn afkomstig van gebruikers en moeten een grondige kwaliteitscontrole doorstaan. Het databankschema en de websitecode zijn vrijgegeven onder de open source GPL-licentie.</description>
<description lang="nb_NO">TheTVDB.com er en Tv Skraper. Siden er en massiv åpen database som kan endres av alle og inneholder data for mange forskjellige programmer på mange språk. Alt innholdet og bildene på siden er lagt til av brukere for brukere og har høy standard og kvalitet. Database skjemaet og websiden er åpen kildekode underlagt GPL.</description>
<description lang="pl_PL">TheTVDB.com jest ekstraktorem informacji o serialach telewizyjnych. Serwis jest ogromną, wielojęzykową i otwartą bazą danych o serialach, którą może edytować każdy. Zawartość tego serwisu została stworzona przez użytkowników, dla użytkowników. Dostępne materiały są najwyższej jakości.</description>
<description lang="pt_PT">O TheTVDB.com é um colector para séries TV. O site é uma gigantesca base de dados livre que pode ser alterada por qualquer pessoa e contém informação em várias línguas. Todos os conteúdos do site foram enviados por utilizadores e têm um elevado padrão de qualidade. A base de dados e o site funcionam sob uma licença GPL de software livre.</description>
<description lang="pt_BR">TheTVDB.com é um scraper de seriados. O site é um enorme banco de dados aberto que pode ser modificado por qualquer pessoa e contém metadados completos de muitos seriados em diferentes idiomas. Todos os conteúdos e imagens no site foram contribuições de usuários para usuários e têm um alto padrão de qualidade. O esquema do banco de dados e do site são de código aberto sob a licença GPL.</description>
<description lang="ro_RO">TheTVDB.com este un colectore TV. Site-ul este o bază de date masivă, deschisă, ce poate fi modificată de oricine şi conţine date complete despre multe seriale în diferite limbi. Tot conţinutul site-ului a fost contribuit de către utilizatori pentru utilizatori şi are un standard de caliate înalt. Schema bazei de date şi site-ul au sursele libere sub licenţă GPL.</description>
<description lang="ru_RU">TheTVDB.com — это инфоресурс для сериалов. Сайт представляет собой огромную открытую базу данных, в которую может вносить данные любой пользователь и которая содержит полные мета-данные для многих сериалов на различных языках. Всё содержимое и изображения на сайте были выложены его пользователями для других пользователей и имеют высокий уровень качества. Структура базы данных и веб-сайт созданы с открытым исходным кодом по лицензии GPL.</description>
<description lang="se">TVDB.com är en TV-skrapa. Sajten är en massiv öppen databas som kan ändras av vem som helst och innehåller full metadata för mängder av serier på olika språk. Allt innehåll och bilder på sajten har bidragits av användare för användare och har en hög standard eller kvalitet. Databasschemat och webbsidan är licensierat som GPL.</description>
<description lang="sk_SK">TheTVDB.com je zdroj získavania dát ohľadom TV. Táto stránka je obrovskou otvorenou databázou, ktorú môže upravovať ktokoľvek a obsahuje úplne metadáta pre mnoho relácií v rôznych jazykoch. Všetok obsah a obrázky na stránke bol dodaný samotnými používateľmi pre používateľov a udržuje si vysoký štandard a kvalitu. Schéma databázy a webová stránka sú dostupné vo forme open source v súlade s licenciou GPL.</description>
<description lang="sl_SI">TheTVDB.com je ponudnik informacij o TV serijah. Stran je masovna odprta baza podatkov, ki jo lahko dopolni kdorkoli, in vsebuje informacije o najrazličnejših TV serijah v več jezikih. Vsa vsebina in slike so bile dodane s strani uporabnikov in imajo visok nivo kvalitete. Shema baze in spletna stran sta odprtokodni pod GPL.</description>
<description lang="sq_AL">TheTVDB.com është një "TV Scraper". Kjo faqe është nje bazë e të dhënave e hapur që mund të modifikohet nga si cili dhe përmbanë metadata për shumë seriale në gjuhë të ndryshme. Gjitha të dhënat dhe imazhet në këtë faqe janë kontribuar nga përdoruesit për përdoruesit dhe kanë një standard dhe kualitet të lartë. Skema e bazës së të dhënave dhe sajti i uebit janë open source nën liçensën GPL. </description>
<description lang="sv_SE">TVDB.com är en TV-skrapa. Sajten är en massiv öppen databas som kan bli modifierad av vem som helst och innehåller all metadata för många serier på olika språk. Allt innehåll och bilder på sidan har bidragits av användare för användare och har hög standard eller kvalitet. Databasschemat och sidan är öppen källkod licensierat under GPL.</description>
<description lang="ta_IN">TheTVDB.com ஒரு தொலைக்காட்சி சுரண்டி. இந்த இணையத்தளத்தில் ஒரு பெரிய தரவுத்தளம் உள்ளது. இதில் எல்லா மொழிகளின் மேட்டாடேட்டா உள்ளது. அனைத்து தகவல்களும் படங்களும் அதன் பயனர்களின் சேகரிப்புஆகும். GPL லைசன்சில் உள்ளது.</description>
<description lang="th_TH">TheTVDB.com เป็นตัวดึงข้อมูลทีวี เว็บไซต์เป็นฐานข้อมูลเปิดขนาดใหญ่ที่สามารถแก้ไขได้โดยทุกคนและมีข้อมูลขั้นสูงเต็มรูปแบบ สำหรับหลาย ๆ รายการ ในแต่ละภาษาที่แตกต่างกัน เนื้อหาและรูปภาพทั้งหมดในเว็บไซต์ ได้รับการสนับสนุนโดยผู้ใช้เพื่อผู้ใช้ มีคุณภาพและมาตรฐานที่สูง schemaของฐานข้อมูลและเว็บไซต์ได้เปิดภายใต้ GPL</description>
<description lang="tr_TR">TheTVDB.com bir TV Scraper'dır. Bu site herkesin düzenleyebileceği büyük bir açık veritabanıdır ve farklı dillerdeki bir çok şov için bilgiler içerir. Sitedeki her resim ve içerik kullanıcılar tarafından kullanıcılar için karşılanır ve bunlar yüksek standart ve kaliteye sahiptir. Veritabanı şeması ve internet sitesi GPL lisansı altında açık kaynaklıdır.</description>
<description lang="uk_UA">TheTVDB.com — джерело інформації про серіали. Це величезна база даних, що містить повні метадані про різні серіали багатьма мовами, яку може редагувати будь-хто. Увесь вміст і зображення на сайті, що відповідають найвищим стандартам якості, надали користувачі для користувачів. Схема бази даних і веб-сайт мають відкриті коди на умовах ліцензії GPL.</description>
<description lang="vi_VN">TheTVDB.com là trình lấy dữ liệu TV show. Site chứa một số lượng khổng lồ cơ sở dữ liệu mở, có thể được thay đổi bởi mọi người và đầy đủ dữ liệu lớn các show trên nhiều ngôn ngữ. Tất cả nội dung và hình ảnh trên site này đều được đóng góp bởi toàn bộ người dùng của nó và có chất lượng cao. Mô hình cơ sở dữ liệu và website đều là mã nguồn mở được hỗ trợ bởi GPL.</description>
<description lang="zh_CN">TheTVDB.com 是一个电视刮削器。该网站是一个巨大的开放式数据库,任何人都可以修改,包含多语言的许多电视剧集资料。网站设定了高品质标准,所有图片和内容都由用户提供。数据库结构和网站均在 GPL 许可下开源。</description>
<description lang="zh_TW">TheTVDB.com是一個電視節目。該網站是一個龐大並可以由任何人修改的開放性資料庫並包含可以以多國語言顯示的完整的數據資料。所有內容和圖片都是經由用戶提供使用有一定的標準或質量。數據庫架構和網站是在GPL下的開放性源碼。</description>
<platform>all</platform>
<license>GPL-3.0-or-later</license>
<reuselanguageinvoker>true</reuselanguageinvoker>
<assets>
<icon>media/icon.png</icon>
<screenshot>media/screenshot-1.jpg</screenshot>
<screenshot>media/screenshot-2.jpg</screenshot>
<screenshot>media/screenshot-3.jpg</screenshot>
</assets>
<news>- 1.0.11: Turn on reuselanguageinvoker</news>
</extension>
</addon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

View File

@@ -0,0 +1,66 @@
# Kodi Media Center language file
# Addon Name: The TVDB
# Addon id: metadata.tvshows.thetvdb.com.v4.python
# Addon Provider: TVDB Team
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Kodi Translation Team\n"
"Language-Team: English (http://www.transifex.com/projects/p/xbmc-addons/language/en/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: de_DE\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgctxt "#30000"
msgid "Language"
msgstr "Sprache"
msgctxt "#30001"
msgid "Season Type"
msgstr "Staffel Typ"
msgctxt "#30002"
msgid "Default"
msgstr "Standard"
msgctxt "#30003"
msgid "Absolute (Single Season)"
msgstr "Absolut (Eine Staffel)"
msgctxt "#30004"
msgid "DVD"
msgstr "DVD"
msgctxt "#30005"
msgid "Alternate (Requires PIN)"
msgstr "Alternativ (PIN benötigt)"
msgctxt "#30006"
msgid "Gender"
msgstr "Geschlecht"
msgctxt "#30007"
msgid "Male"
msgstr "Männlich"
msgctxt "#30008"
msgid "Female"
msgstr "Weiblich"
msgctxt "#30009"
msgid "Other"
msgstr "Geburtsjahr"
msgctxt "#30010"
msgid "Birth Year"
msgstr "Geburtsjahr"
msgctxt "#30011"
msgid "PIN"
msgstr "PIN"

View File

@@ -0,0 +1,66 @@
# Kodi Media Center language file
# Addon Name: The TVDB
# Addon id: metadata.tvshows.thetvdb.com.v4.python
# Addon Provider: TVDB Team
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Kodi Translation Team\n"
"Language-Team: English (http://www.transifex.com/projects/p/xbmc-addons/language/en/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en_AU\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgctxt "#30000"
msgid "Language"
msgstr "Language"
msgctxt "#30001"
msgid "Season Type"
msgstr "Season Type"
msgctxt "#30002"
msgid "Default"
msgstr "Default"
msgctxt "#30003"
msgid "Absolute (Single Season)"
msgstr "Absolute (Single Season)"
msgctxt "#30004"
msgid "DVD"
msgstr "DVD"
msgctxt "#30005"
msgid "Alternate (Requires PIN)"
msgstr "Alternate (Requires PIN)"
msgctxt "#30006"
msgid "Gender"
msgstr "Gender"
msgctxt "#30007"
msgid "Male"
msgstr "Male"
msgctxt "#30008"
msgid "Female"
msgstr "Female"
msgctxt "#30009"
msgid "Other"
msgstr "Other"
msgctxt "#30010"
msgid "Birth Year"
msgstr "Birth Year"
msgctxt "#30011"
msgid "PIN"
msgstr "PIN"

View File

@@ -0,0 +1,73 @@
# Kodi Media Center language file
# Addon Name: The TVDB
# Addon id: metadata.tvdb.com
# Addon Provider: XBMC Foundation
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Kodi Translation Team\n"
"Language-Team: English (http://www.transifex.com/projects/p/xbmc-addons/language/en/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en_GB\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgctxt "#30000"
msgid "Language"
msgstr "Language"
msgctxt "#30001"
msgid "Season Type"
msgstr "Season Type"
msgctxt "#30002"
msgid "Default"
msgstr "Default"
msgctxt "#30003"
msgid "Absolute (Single Season)"
msgstr "Absolute (Single Season)"
msgctxt "#30004"
msgid "DVD"
msgstr "DVD"
msgctxt "#30005"
msgid "Alternate (Requires PIN)"
msgstr "Alternate (Requires PIN)"
msgctxt "#30006"
msgid "Gender"
msgstr "Gender"
msgctxt "#30007"
msgid "Male"
msgstr "Male"
msgctxt "#30008"
msgid "Female"
msgstr "Female"
msgctxt "#30009"
msgid "Other"
msgstr "Other"
msgctxt "#30010"
msgid "Birth Year"
msgstr "Birth Year"
msgctxt "#30011"
msgid "PIN"
msgstr "PIN"
msgctxt "#30012"
msgid "Get tags"
msgstr ""
msgctxt "#30013"
msgid "Preferred content rating country"
msgstr ""

View File

@@ -0,0 +1,66 @@
# Kodi Media Center language file
# Addon Name: The TVDB
# Addon id: metadata.tvdb.com
# Addon Provider: XBMC Foundation
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Kodi Translation Team\n"
"Language-Team: English (http://www.transifex.com/projects/p/xbmc-addons/language/en/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en_US\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgctxt "#30000"
msgid "Language"
msgstr "Language"
msgctxt "#30001"
msgid "Season Type"
msgstr "Season Type"
msgctxt "#30002"
msgid "Default"
msgstr "Default"
msgctxt "#30003"
msgid "Absolute (Single Season)"
msgstr "Absolute (Single Season)"
msgctxt "#30004"
msgid "DVD"
msgstr "DVD"
msgctxt "#30005"
msgid "Alternate (Requires PIN)"
msgstr "Alternate (Requires PIN)"
msgctxt "#30006"
msgid "Gender"
msgstr "Gender"
msgctxt "#30007"
msgid "Male"
msgstr "Male"
msgctxt "#30008"
msgid "Female"
msgstr "Female"
msgctxt "#30009"
msgid "Other"
msgstr "Other"
msgctxt "#30010"
msgid "Birth Year"
msgstr "Birth Year"
msgctxt "#30011"
msgid "PIN"
msgstr "PIN"

View File

@@ -0,0 +1,66 @@
# Kodi Media Center language file
# Addon Name: The TVDB
# Addon id: metadata.tvshows.thetvdb.com.v4.python
# Addon Provider: TVDB Team
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Kodi Translation Team\n"
"Language-Team: English (http://www.transifex.com/projects/p/xbmc-addons/language/en/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: fr_FR\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgctxt "#30000"
msgid "Language"
msgstr "Langue"
msgctxt "#30001"
msgid "Season Type"
msgstr "Type de Saison"
msgctxt "#30002"
msgid "Default"
msgstr "Défaut"
msgctxt "#30003"
msgid "Absolute (Single Season)"
msgstr "Absolu (Saison Unique)"
msgctxt "#30004"
msgid "DVD"
msgstr "DVD"
msgctxt "#30005"
msgid "Alternate (Requires PIN)"
msgstr "Alternatif (Nécessite un PIN)"
msgctxt "#30006"
msgid "Gender"
msgstr "Genre"
msgctxt "#30007"
msgid "Male"
msgstr "Homme"
msgctxt "#30008"
msgid "Female"
msgstr "Femme"
msgctxt "#30009"
msgid "Other"
msgstr "Autre"
msgctxt "#30010"
msgid "Birth Year"
msgstr "Année de naissance"
msgctxt "#30011"
msgid "PIN"
msgstr "PIN"

View File

@@ -0,0 +1,66 @@
# Kodi Media Center language file
# Addon Name: The TVDB
# Addon id: metadata.tvshows.thetvdb.com.v4.python
# Addon Provider: TVDB Team
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Kodi Translation Team\n"
"Language-Team: English (http://www.transifex.com/projects/p/xbmc-addons/language/en/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: he_IL\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgctxt "#30000"
msgid "Language"
msgstr "שפה"
msgctxt "#30001"
msgid "Season Type"
msgstr "סוג עונה"
msgctxt "#30002"
msgid "Default"
msgstr "ברירת מחדל"
msgctxt "#30003"
msgid "Absolute (Single Season)"
msgstr "אבסולוטי (עונה יחידה)"
msgctxt "#30004"
msgid "DVD"
msgstr "DVD"
msgctxt "#30005"
msgid "Alternate (Requires PIN)"
msgstr "אלטרנטיבי (מצריך PIN)"
msgctxt "#30006"
msgid "Gender"
msgstr "מגדר"
msgctxt "#30007"
msgid "Male"
msgstr "זכר"
msgctxt "#30008"
msgid "Female"
msgstr "נקבה"
msgctxt "#30009"
msgid "Other"
msgstr "אחר"
msgctxt "#30010"
msgid "Birth Year"
msgstr "שנת לידה"
msgctxt "#30011"
msgid "PIN"
msgstr "PIN"

View File

@@ -0,0 +1,66 @@
# Kodi Media Center language file
# Addon Name: The TVDB
# Addon id: metadata.tvshows.thetvdb.com.v4.python
# Addon Provider: TVDB Team
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Kodi Translation Team\n"
"Language-Team: English (http://www.transifex.com/projects/p/xbmc-addons/language/en/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: pt_BR\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgctxt "#30000"
msgid "Language"
msgstr "Idioma"
msgctxt "#30001"
msgid "Season Type"
msgstr "Tipo de Temporada"
msgctxt "#30002"
msgid "Default"
msgstr "Padrão"
msgctxt "#30003"
msgid "Absolute (Single Season)"
msgstr "Absoluto (Temporada Única)"
msgctxt "#30004"
msgid "DVD"
msgstr "DVD"
msgctxt "#30005"
msgid "Alternate (Requires PIN)"
msgstr "Alternativo (Requer um PIN)"
msgctxt "#30006"
msgid "Gender"
msgstr "Género"
msgctxt "#30007"
msgid "Male"
msgstr "Masculino"
msgctxt "#30008"
msgid "Female"
msgstr "Feminino"
msgctxt "#30009"
msgid "Other"
msgstr "Outro"
msgctxt "#30010"
msgid "Birth Year"
msgstr "Ano de Nascimento"
msgctxt "#30011"
msgid "PIN"
msgstr "PIN"

View File

@@ -0,0 +1,66 @@
# Kodi Media Center language file
# Addon Name: The TVDB
# Addon id: metadata.tvshows.thetvdb.com.v4.python
# Addon Provider: TVDB Team
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Kodi Translation Team\n"
"Language-Team: English (http://www.transifex.com/projects/p/xbmc-addons/language/en/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: pt_PT\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgctxt "#30000"
msgid "Language"
msgstr "Idioma"
msgctxt "#30001"
msgid "Season Type"
msgstr "Tipo de Temporada"
msgctxt "#30002"
msgid "Default"
msgstr "Predefinição"
msgctxt "#30003"
msgid "Absolute (Single Season)"
msgstr "Absoluto (Temporada Única)"
msgctxt "#30004"
msgid "DVD"
msgstr "DVD"
msgctxt "#30005"
msgid "Alternate (Requires PIN)"
msgstr "Alternativo (Requer um PIN)"
msgctxt "#30006"
msgid "Gender"
msgstr "Género"
msgctxt "#30007"
msgid "Male"
msgstr "Masculino"
msgctxt "#30008"
msgid "Female"
msgstr "Feminino"
msgctxt "#30009"
msgid "Other"
msgstr "Outro"
msgctxt "#30010"
msgid "Birth Year"
msgstr "Ano de Nascimento"
msgctxt "#30011"
msgid "PIN"
msgstr "PIN"

View File

@@ -0,0 +1,66 @@
# Kodi Media Center language file
# Addon Name: The TVDB
# Addon id: metadata.tvshows.thetvdb.com.v4.python
# Addon Provider: TVDB Team
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Kodi Translation Team\n"
"Language-Team: English (http://www.transifex.com/projects/p/xbmc-addons/language/en/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: tr_TR\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgctxt "#30000"
msgid "Language"
msgstr "Dil"
msgctxt "#30001"
msgid "Season Type"
msgstr "Season Type"
msgctxt "#30002"
msgid "Default"
msgstr "Kusur"
msgctxt "#30003"
msgid "Absolute (Single Season)"
msgstr "Absolute (Single Season)"
msgctxt "#30004"
msgid "DVD"
msgstr "DVD"
msgctxt "#30005"
msgid "Alternate (Requires PIN)"
msgstr "Alternatif"
msgctxt "#30006"
msgid "Gender"
msgstr "Cinsiyet"
msgctxt "#30007"
msgid "Male"
msgstr "Erkek"
msgctxt "#30008"
msgid "Female"
msgstr "Erkek"
msgctxt "#30009"
msgid "Other"
msgstr "Other"
msgctxt "#30010"
msgid "Birth Year"
msgstr "Doğum yılı"
msgctxt "#30011"
msgid "PIN"
msgstr "PIN"

View File

@@ -0,0 +1,54 @@
import json
import sys
import urllib.error
import urllib.parse
import urllib.request
import xbmcaddon
import xbmcplugin
from .movies import get_artworks, get_movie_details, search_movie
from .nfo import get_movie_id_from_nfo
from .utils import create_uuid, logger
ADDON_SETTINGS = xbmcaddon.Addon()
def run():
qs = sys.argv[2][1:]
params = dict(urllib.parse.parse_qsl(qs))
handle = int(sys.argv[1])
_action = params.get("action", "")
action = urllib.parse.unquote_plus(_action)
_settings = params.get("pathSettings", "{}")
settings = json.loads(_settings)
_title = params.get("title", "")
title = urllib.parse.unquote_plus(_title)
year = params.get("year", None)
uuid = settings.get("uuid", None)
if not uuid:
uuid = create_uuid()
ADDON_SETTINGS.setSetting("uuid", uuid)
settings["uuid"] = uuid
if action:
if action == 'find' and 'title' in params:
logger.debug("should search for movie")
search_movie(title, settings, handle, year)
elif action == 'getdetails' and 'url' in params:
logger.debug("should get movie details")
get_movie_details(urllib.parse.unquote_plus(params["url"]), settings, handle)
elif action == 'NfoUrl' and 'nfo' in params:
logger.debug("should parse nfo")
get_movie_id_from_nfo(params['nfo'], handle)
elif action == 'getartwork' and 'id' in params:
logger.debug("about to call get artworks")
get_artworks(urllib.parse.unquote_plus(
params["id"]), settings, handle)
else:
logger.debug("unhandled action")
else:
logger.debug("no action to act on")
xbmcplugin.endOfDirectory(handle)

View File

@@ -0,0 +1,442 @@
LANGUAGES_MAP = {
'Abkhaz': 'abk',
'Afar': 'aar',
'Afrikaans': 'afr',
'Akan': 'aka',
'Albanian': 'sqi',
'Amharic': 'amh',
'Arabic': 'ara',
'Aragonese': 'arg',
'Armenian': 'hye',
'Assamese': 'asm',
'Avaric': 'ava',
'Avestan': 'ave',
'Aymara': 'aym',
'Azerbaijani': 'aze',
'Bambara': 'bam',
'Bashkir': 'bak',
'Basque': 'eus',
'Belarusian': 'bel',
'Bengali': 'ben',
'Bihari': 'bih',
'Bislama': 'bis',
'Bosnian': 'bos',
'Breton': 'bre',
'Bulgarian': 'bul',
'Burmese': 'mya',
'Catalan': 'cat',
'Chamorro': 'cha',
'Chechen': 'che',
'Chichewa': 'nya',
'Chinese - Cantonese': 'yue',
'Chinese - China': 'zho',
'Chinese - Taiwan': 'zhtw',
'Chuvash': 'chv',
'Cornish': 'cor',
'Corsican': 'cos',
'Cree': 'cre',
'Croatian': 'hrv',
'Czech': 'ces',
'Danish': 'dan',
'Divehi': 'div',
'Dutch': 'nld',
'Dzongkha': 'dzo',
'English': 'eng',
'Esperanto': 'epo',
'Estonian': 'est',
'Ewe': 'ewe',
'Faroese': 'fao',
'Fijian': 'fij',
'Finnish': 'fin',
'French': 'fra',
'Fula': 'ful',
'Galician': 'glg',
'Georgian': 'kat',
'German': 'deu',
'Greek': 'ell',
'Guaraní': 'grn',
'Gujarati': 'guj',
'Haitian': 'hat',
'Hausa': 'hau',
'Hebrew': 'heb',
'Herero': 'her',
'Hindi': 'hin',
'Hiri Motu': 'hmo',
'Hungarian': 'hun',
'Icelandic': 'isl',
'Ido': 'ido',
'Igbo': 'ibo',
'Indonesian': 'ind',
'Interlingua': 'ina',
'Interlingue': 'ile',
'Inuktitut': 'iku',
'Inupiaq': 'ipk',
'Irish': 'gle',
'Italian': 'ita',
'Japanese': 'jpn',
'Javanese': 'jav',
'Kalaallisut': 'kal',
'Kannada': 'kan',
'Kanuri': 'kau',
'Kashmiri': 'kas',
'Kazakh': 'kaz',
'Khmer': 'khm',
'Kikuyu': 'kik',
'Kinyarwanda': 'kin',
'Kirghiz': 'kir',
'Kirundi': 'run',
'Komi': 'kom',
'Kongo': 'kon',
'Korean': 'kor',
'Kurdish': 'kur',
'Kwanyama': 'kua',
'Lao': 'lao',
'Latin': 'lat',
'Latvian': 'lav',
'Limburgish': 'lim',
'Lingala': 'lin',
'Lithuanian': 'lit',
'Luba-Katanga': 'lub',
'Luganda': 'lug',
'Luxembourgish': 'ltz',
'Macedonian': 'mkd',
'Malagasy': 'mlg',
'Malay': 'msa',
'Malayalam': 'mal',
'Maltese': 'mlt',
'Manx': 'glv',
'Marathi': 'mar',
'Marshallese': 'mah',
'Mongolian': 'mon',
'Māori': 'mri',
'Nauru': 'nau',
'Navajo': 'nav',
'Ndonga': 'ndo',
'Nepali': 'nep',
'North Ndebele': 'nde',
'Northern Sami': 'sme',
'Norwegian': 'nor',
'Nuosu': 'iii',
'Occitan': 'oci',
'Ojibwe': 'oji',
'Old Church Slavonic': 'chu',
'Oriya': 'ori',
'Oromo': 'orm',
'Ossetian': 'oss',
'Panjabi': 'pan',
'Pashto': 'pus',
'Persian': 'fas',
'Polish': 'pol',
'Portuguese - Brazil': 'pt',
'Portuguese - Portugal': 'por',
'Pāli': 'pli',
'Quechua': 'que',
'Romanian': 'ron',
'Romansh': 'roh',
'Russian': 'rus',
'Samoan': 'smo',
'Sango': 'sag',
'Sanskrit': 'san',
'Sardinian': 'srd',
'Scottish Gaelic': 'gla',
'Serbian': 'srp',
'Shona': 'sna',
'Sindhi': 'snd',
'Sinhala': 'sin',
'Slovak': 'slk',
'Slovene': 'slv',
'Somali': 'som',
'South Ndebele': 'nbl',
'Southern Sotho': 'sot',
'Spanish': 'spa',
'Sundanese': 'sun',
'Swahili': 'swa',
'Swati': 'ssw',
'Swedish': 'swe',
'Tagalog': 'tgl',
'Tahitian': 'tah',
'Tajik': 'tgk',
'Tamil': 'tam',
'Tatar': 'tat',
'Telugu': 'tel',
'Thai': 'tha',
'Tibetan Standard': 'bod',
'Tigrinya': 'tir',
'Tonga': 'ton',
'Tsonga': 'tso',
'Tswana': 'tsn',
'Turkish': 'tur',
'Turkmen': 'tuk',
'Twi': 'twi',
'Uighur': 'uig',
'Ukrainian': 'ukr',
'Urdu': 'urd',
'Uzbek': 'uzb',
'Venda': 'ven',
'Vietnamese': 'vie',
'Volapük': 'vol',
'Walloon': 'wln',
'Welsh': 'cym',
'Western Frisian': 'fry',
'Wolof': 'wol',
'Xhosa': 'xho',
'Yiddish': 'yid',
'Yoruba': 'yor',
'Zhuang': 'zha',
'Zulu': 'zul',
}
COUNTRIES_MAP = {
'abw': 'Aruba',
'afg': 'Afghanistan',
'ago': 'Angola',
'aia': 'Anguilla',
'ala': 'Åland Islands',
'alb': 'Albania',
'and': 'Andorra',
'are': 'United Arab Emirates',
'arg': 'Argentina',
'arm': 'Armenia',
'asm': 'American Samoa',
'ata': 'Antarctica',
'atf': 'French Southern Territories',
'atg': 'Antigua and Barbuda',
'aus': 'Australia',
'aut': 'Austria',
'aze': 'Azerbaijan',
'bdi': 'Burundi',
'bel': 'Belgium',
'ben': 'Benin',
'bes': 'Bonaire, Sint Eustatius and Saba',
'bfa': 'Burkina Faso',
'bgd': 'Bangladesh',
'bgr': 'Bulgaria',
'bhr': 'Bahrain',
'bhs': 'Bahamas',
'bih': 'Bosnia and Herzegovina',
'blm': 'Saint Barthélemy',
'blr': 'Belarus',
'blz': 'Belize',
'bmu': 'Bermuda',
'bol': 'Bolivia',
'bra': 'Brazil',
'brb': 'Barbados',
'brn': 'Brunei Darussalam',
'btn': 'Bhutan',
'bvt': 'Bouvet Island',
'bwa': 'Botswana',
'caf': 'Central African Republic',
'can': 'Canada',
'cck': 'Cocos (Keeling) Islands',
'che': 'Swiss Confederation',
'chl': 'Chile',
'chn': 'China',
'civ': 'Ivory Coast',
'cmr': 'Cameroon',
'cod': 'Congo',
'cog': 'Republic of the Congo',
'cok': 'Cook Islands',
'col': 'Colombia',
'com': 'Comoros',
'cpv': 'Cape Verde',
'cri': 'Costa Rica',
'cub': 'Cuba',
'cuw': 'Curaçao',
'cxr': 'Christmas Island',
'cym': 'Cayman Islands',
'cyp': 'Cyprus',
'cze': 'Czech Republic',
'deu': 'Germany',
'dji': 'Djibouti',
'dma': 'Dominica',
'dnk': 'Denmark',
'dom': 'Dominican Republic',
'dza': 'Algeria',
'ecu': 'Ecuador',
'egy': 'Egypt',
'eri': 'Eritrea',
'esh': 'Western Sahara',
'esp': 'Spain',
'est': 'Estonia',
'eth': 'Ethiopia',
'fin': 'Finland',
'fji': 'Fiji',
'flk': 'The Falkland Islands',
'fra': 'France',
'fro': 'The Faroe Islands',
'fsm': 'Micronesia',
'gab': 'Gabon',
'gbr': 'Great Britain',
'geo': 'Georgia',
'ggy': 'Guernsey',
'gha': 'Ghana',
'gib': 'Gibraltar',
'gin': 'Guinea',
'glp': 'Guadeloupe',
'gmb': 'Gambia',
'gnb': 'Guinea-Bissau',
'gnq': 'Equatorial Guinea',
'grc': 'Greece',
'grd': 'Grenada',
'grl': 'Greenland',
'gtm': 'Guatemala',
'guf': 'French Guiana',
'gum': 'Guam',
'guy': 'Guyana',
'hkg': 'Hong Kong',
'hmd': 'Heard Island and McDonald Islands',
'hnd': 'Honduras',
'hrv': 'Croatia',
'hti': 'Haiti',
'hun': 'Hungary',
'idn': 'Indonesia',
'imn': 'Isle of Man',
'ind': 'India',
'iot': 'British Indian Ocean Territory',
'irl': 'Ireland',
'irn': 'Iran',
'irq': 'Iraq',
'isl': 'Iceland',
'isr': 'Israel',
'ita': 'Italy',
'jam': 'Jamaica',
'jey': 'Jersey',
'jor': 'Jordan',
'jpn': 'Japan',
'kaz': 'Kazakhstan',
'ken': 'Kenya',
'kgz': 'Kyrgyzstan',
'khm': 'Cambodia',
'kir': 'Kiribati',
'kna': 'Saint Christopher and Nevis',
'kor': 'South Korea',
'kwt': 'Kuwait',
'lao': 'Laos',
'lbn': 'Lebanon',
'lbr': 'Liberia',
'lby': 'Libya',
'lca': 'Saint Lucia',
'lie': 'Liechtenstein',
'lka': 'Sri Lanka',
'lso': 'Lesotho',
'ltu': 'Lithuania',
'lux': 'Luxembourg',
'lva': 'Latvia',
'mac': 'Macao',
'maf': 'Saint Martin',
'mar': 'Morocco',
'mco': 'Monaco',
'mda': 'Moldova',
'mdg': 'Madagascar',
'mdv': 'Maldives',
'mex': 'Mexico',
'mhl': 'Marshall Islands',
'mkd': 'Macedonia',
'mli': 'Mali',
'mlt': 'Malta',
'mmr': 'Myanmar',
'mne': 'Montenegro',
'mng': 'Mongolia',
'mnp': 'Northern Mariana Islands',
'moz': 'Mozambique',
'mrt': 'Mauritania',
'msr': 'Montserrat',
'mtq': 'Martinique',
'mus': 'Mauritius',
'mwi': 'Malawi',
'mys': 'Malaysia',
'myt': 'Mayotte',
'nam': 'Namibia',
'ncl': 'New Caledonia',
'ner': 'Niger',
'nfk': 'Norfolk Island',
'nga': 'Nigeria',
'nic': 'Nicaragua',
'niu': 'Niue',
'nld': 'The Netherlands',
'nor': 'Norway',
'npl': 'Nepal',
'nru': 'Nauru',
'nzl': 'New Zealand',
'omn': 'Oman',
'pak': 'Pakistan',
'pan': 'Panama',
'pcn': 'Pitcairn',
'per': 'Peru',
'phl': 'Philippines',
'plw': 'Republic of Palau',
'png': 'Papua New Guinea',
'pol': 'Poland',
'pri': 'Puerto Rico',
'prk': 'North Korea',
'prt': 'Portugal',
'pry': 'Paraguay',
'pse': 'Palestine, State of',
'pyf': 'French Polynesia',
'qat': 'Qatar',
'reu': 'Réunion',
'rou': 'Romania',
'rus': 'Russia',
'rwa': 'Rwanda',
'sau': 'Saudi Arabia',
'sdn': 'Sudan',
'sen': 'Senegal',
'sgp': 'Singapore',
'sgs': 'South Georgia',
'shn': 'Saint Helena, Ascension and Tristan da Cunha',
'sjm': 'Svalbard and Jan Mayen',
'slb': 'Solomon Islands',
'sle': 'Sierra Leone',
'slv': 'El Salvador',
'smr': 'San Marino',
'som': 'Somali Republic',
'spm': 'Saint Pierre and Miquelon',
'srb': 'Serbia',
'ssd': 'South Sudan',
'stp': 'São Tomé and Príncipe',
'sur': 'Suriname',
'svk': 'Slovakia',
'svn': 'Slovenia',
'swe': 'Sweden',
'swz': 'Swaziland',
'sxm': 'Sint Maarten',
'syc': 'Seychelles',
'syr': 'Syrian Arab Republic',
'tca': 'Turks and Caicos Islands',
'tcd': 'Chad',
'tgo': 'Togo',
'tha': 'Thailand',
'tjk': 'Tajikistan',
'tkl': 'Tokelau',
'tkm': 'Turkmenistan',
'tls': 'Timor-Leste',
'ton': 'Tonga',
'tto': 'Trinidad and Tobago',
'tun': 'Tunisia',
'tur': 'Turkey',
'tuv': 'Tuvalu',
'twn': 'Taiwan',
'tza': 'Tanzania',
'uga': 'Uganda',
'ukr': 'Ukraine',
'umi': 'United States Minor Outlying Islands',
'unk': 'Kosovo',
'ury': 'Uruguay',
'usa': 'USA',
'uzb': 'Uzbekistan',
'vat': 'Vatican City',
'vct': 'Saint Vincent and the Grenadines',
'ven': 'Venezuela',
'vgb': 'British Virgin Islands',
'vir': 'Virgin Islands of the United States',
'vnm': 'Vietnam',
'vut': 'Vanuatu',
'wlf': 'Wallis and Futuna',
'wsm': 'Samoa',
'yem': 'Yemen',
'zaf': 'South Africa',
'zmb': 'Zambia',
'zwe': 'Zimbabwe',
}
REVERSED_COUNTRIES_MAP = {country: code for code, country in COUNTRIES_MAP.items()}

View File

@@ -0,0 +1,150 @@
# coding: utf-8
# (c) Roman Miroshnychenko <roman1972@gmail.com> 2020
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""Exception logger with extended diagnostic info"""
import inspect
import sys
from contextlib import contextmanager
from platform import uname
from pprint import pformat
from typing import Text, Callable, Generator
import xbmc
from .utils import logger
def _format_vars(variables):
# type: (dict) -> Text
"""
Format variables dictionary
:param variables: variables dict
:return: formatted string with sorted ``var = val`` pairs
"""
var_list = [(var, val) for var, val in variables.items()
if not (var.startswith('__') or var.endswith('__'))]
var_list.sort(key=lambda i: i[0])
lines = []
for var, val in var_list:
lines.append('{} = {}'.format(var, pformat(val)))
return '\n'.join(lines)
def _format_code_context(frame_info):
# type: (tuple) -> Text
context = ''
if frame_info[4] is not None:
for i, line in enumerate(frame_info[4], frame_info[2] - frame_info[5]):
if i == frame_info[2]:
context += '{}:>{}'.format(str(i).rjust(5), line)
else:
context += '{}: {}'.format(str(i).rjust(5), line)
return context
FRAME_INFO_TEMPLATE = """File:
{file_path}:{lineno}
----------------------------------------------------------------------------------------------------
Code context:
{code_context}
----------------------------------------------------------------------------------------------------
Local variables:
{local_vars}
====================================================================================================
"""
def _format_frame_info(frame_info):
# type: (tuple) -> Text
return FRAME_INFO_TEMPLATE.format(
file_path=frame_info[1],
lineno=frame_info[2],
code_context=_format_code_context(frame_info),
local_vars=_format_vars(frame_info[0].f_locals)
)
EXCEPTION_TEMPLATE = """
*********************************** Unhandled exception detected ***********************************
####################################################################################################
Diagnostic info
----------------------------------------------------------------------------------------------------
Exception type : {exc_type}
Exception value : {exc}
System info : {system_info}
Python version : {python_version}
Kodi version : {kodi_version}
sys.argv : {sys_argv}
----------------------------------------------------------------------------------------------------
sys.path:
{sys_path}
####################################################################################################
Stack Trace
====================================================================================================
{stack_trace}
************************************* End of diagnostic info ***************************************
"""
@contextmanager
def log_exception(logger_func=logger.error):
# type: (Callable[[Text], None]) -> Generator[None, None, None]
"""
Diagnostic helper context manager
It controls execution within its context and writes extended
diagnostic info to the Kodi log if an unhandled exception
happens within the context. The info includes the following items:
- System info
- Python version
- Kodi version
- Module path.
- Stack trace including:
* File path and line number where the exception happened
* Code fragment where the exception has happened.
* Local variables at the moment of the exception.
After logging the diagnostic info the exception is re-raised.
Example::
with debug_exception():
# Some risky code
raise RuntimeError('Fatal error!')
:param logger_func: logger function that accepts a single argument
that is a log message.
"""
try:
yield
except Exception as exc:
stack_trace = ''
for frame_info in inspect.trace(5):
stack_trace += _format_frame_info(frame_info)
message = EXCEPTION_TEMPLATE.format(
exc_type=exc.__class__.__name__,
exc=exc,
system_info=uname(),
python_version=sys.version.replace('\n', ' '),
kodi_version=xbmc.getInfoLabel('System.BuildVersion'),
sys_argv=pformat(sys.argv),
sys_path=pformat(sys.path),
stack_trace=stack_trace
)
logger_func(message)
raise exc

View File

@@ -0,0 +1,392 @@
import enum
import re
import xbmcgui
import xbmcplugin
from . import tvdb
from .constants import COUNTRIES_MAP
from .utils import logger, get_language, get_rating_country_code
ARTWORK_URL_PREFIX = "https://artworks.thetvdb.com"
SUPPORTED_REMOTE_IDS = {
'IMDB': 'imdb',
'TheMovieDB.com': 'tmdb',
}
MAX_IMAGES_NUMBER = 10
# Some skins use those names to display rating icons
RATING_COUNTRY_MAP = {
'gbr': 'UK',
'nld': 'NL',
}
class ArtworkType(enum.IntEnum):
POSTER = 14
BACKGROUND = 15
BANNER = 16
ICON = 18
CLEARART = 24
CLEARLOGO = 25
def search_movie(title, settings, handle, year=None) -> None:
# add the found shows to the list
tvdb_client = tvdb.Client(settings)
kwargs = {'limit': 10}
if year is not None:
kwargs['year'] = year
search_results = tvdb_client.search(title, type="movie", **kwargs)
if not search_results:
return
language = get_language(settings)
items = []
for movie in search_results:
name = None
translations = movie.get('translations') or {}
if translations:
name = translations.get(language)
if not name:
translations.get('eng')
if not name:
name = movie['name']
if movie.get('year'):
name += f' ({movie["year"]})'
liz = xbmcgui.ListItem(name, offscreen=True)
url = str(movie['tvdb_id'])
is_folder = True
items.append((url, liz, is_folder))
xbmcplugin.addDirectoryItems(
handle,
items,
len(items)
)
def get_movie_details(id, settings, handle):
# get the details of the found series
tvdb_client = tvdb.Client(settings)
language = get_language(settings)
movie = tvdb_client.get_movie_details_api(id, language=language)
if not movie:
xbmcplugin.setResolvedUrl(
handle, False, xbmcgui.ListItem(offscreen=True))
return
liz = xbmcgui.ListItem(movie["name"], offscreen=True)
people = get_cast(movie)
liz.setCast(people["cast"])
genres = get_genres(movie)
duration_minutes = movie.get('runtime') or 0
details = {
'title': movie["name"],
'plot': movie["overview"],
'plotoutline': movie["overview"],
'mediatype': 'movie',
'writer': people["writers"],
'director': people["directors"],
'genre': genres,
'duration': duration_minutes * 60,
}
premiere_date = get_premiere_date(movie)
if premiere_date is not None:
details["year"] = premiere_date["year"]
details["premiered"] = premiere_date["date"]
rating_country_code = get_rating_country_code(settings)
rating = get_rating(movie, rating_country_code)
if rating:
details["mpaa"] = rating
country = movie.get("originalCountry", None)
if country:
details["country"] = COUNTRIES_MAP.get(country, '')
studio = get_studio(movie)
if studio:
details["studio"] = studio
if settings.get('get_tags'):
tags = get_tags(movie)
if tags:
details["tag"] = tags
trailer = get_trailer(movie)
if trailer:
details["trailer"] = trailer
set_ = get_set(movie)
set_poster = None
if set_:
set_info = tvdb_client.get_movie_set_info(set_["id"], settings)
details["set"] = set_info["name"]
details["setoverview"] = set_info["overview"]
first_movie_in_set_id = set_info["movie_id"]
if first_movie_in_set_id:
first_movie_in_set = tvdb_client.get_movie_details_api(first_movie_in_set_id,
language=language)
set_poster = first_movie_in_set["image"]
liz.setInfo('video', details)
unique_ids = get_unique_ids(movie)
liz.setUniqueIDs(unique_ids, 'tvdb')
add_artworks(movie, liz, set_poster, language=language)
xbmcplugin.setResolvedUrl(handle=handle, succeeded=True, listitem=liz)
def get_cast(movie):
cast = []
directors = []
writers = []
characters = movie.get('characters') or ()
for char in characters:
if char["peopleType"] == "Actor":
d = {
'name': char["personName"],
'role': char["name"],
}
thumbnail = char.get('image') or char.get('personImgURL')
if thumbnail:
if not thumbnail.startswith(ARTWORK_URL_PREFIX):
thumbnail = ARTWORK_URL_PREFIX + thumbnail
d['thumbnail'] = thumbnail
cast.append(d)
if char["peopleType"] == "Director":
directors.append(char["personName"])
if char["peopleType"] == "Writer":
writers.append(char["personName"])
return {
"directors": directors,
"writers": writers,
"cast": cast,
}
def get_artworks_from_movie(movie: dict, language='eng') -> dict:
def sorter(item):
item_language = item.get('language')
score = item.get('score') or 0
if item_language == language:
return 3, score
if item_language is None:
return 2, score
if item_language == 'eng':
return 1, score
return 0, score
artworks = movie.get("artworks") or ()
posters = []
backgrounds = []
banners = []
icons = []
cleararts = []
clearlogos = []
for art in artworks:
art_type = art.get('type')
if art_type == ArtworkType.POSTER:
posters.append(art)
elif art_type == ArtworkType.BACKGROUND:
backgrounds.append(art)
elif art_type == ArtworkType.BANNER:
banners.append(art)
elif art_type == ArtworkType.ICON:
icons.append(art)
elif art_type == ArtworkType.CLEARART:
cleararts.append(art)
elif art_type == ArtworkType.CLEARLOGO:
clearlogos.append(art)
posters.sort(key=sorter, reverse=True)
backgrounds.sort(key=sorter, reverse=True)
banners.sort(key=sorter, reverse=True)
icons.sort(key=sorter, reverse=True)
cleararts.sort(key=sorter, reverse=True)
clearlogos.sort(key=sorter, reverse=True)
artwork_dict = {
'poster': posters[:MAX_IMAGES_NUMBER],
'fanart': backgrounds[:MAX_IMAGES_NUMBER],
'banner': banners[:MAX_IMAGES_NUMBER],
'icon': banners[:MAX_IMAGES_NUMBER],
'clearart': cleararts[:MAX_IMAGES_NUMBER],
'clearlogo': clearlogos[:MAX_IMAGES_NUMBER]
}
return artwork_dict
def add_artworks(movie, liz, set_poster=None, language='eng'):
artworks = get_artworks_from_movie(movie, language=language)
fanarts = artworks.pop('fanart')
if set_poster:
liz.addAvailableArtwork(set_poster, 'set.poster')
for image_type, images in artworks.items():
for image in images:
image_url = image.get('image') or ''
if ARTWORK_URL_PREFIX not in image_url:
image_url = ARTWORK_URL_PREFIX + image_url
liz.addAvailableArtwork(image_url, image_type)
fanart_items = []
for fanart in fanarts:
image = fanart.get("image", "")
thumb = fanart["thumbnail"]
if ARTWORK_URL_PREFIX not in image:
image = ARTWORK_URL_PREFIX + image
thumb = ARTWORK_URL_PREFIX + thumb
fanart_items.append(
{'image': image, 'preview': thumb})
if fanarts:
liz.setAvailableFanart(fanart_items)
def get_artworks(id, settings, handle):
tvdb_client = tvdb.Client(settings)
movie = tvdb_client.get_series_details_api(id, settings)
if not movie:
xbmcplugin.setResolvedUrl(
handle, False, xbmcgui.ListItem(offscreen=True))
return
liz = xbmcgui.ListItem(id, offscreen=True)
language = get_language(settings)
add_artworks(movie, liz, language=language)
xbmcplugin.setResolvedUrl(handle=handle, succeeded=True, listitem=liz)
def get_premiere_date(movie):
releases = movie.get("releases")
if not releases:
return None
if len(releases) > 1:
releases.sort(key=lambda r: r['date'])
date_str = releases[0]['date']
year = int(date_str.split("-")[0])
return {
"year": year,
"date": date_str,
}
def get_genres(movie):
genres = movie.get('genres') or ()
return [genre["name"] for genre in genres]
def get_rating(movie, rating_country_code):
ratings = movie.get("contentRatings")
rating = ""
if ratings:
if len(ratings) == 1:
rating = ratings[0]["name"]
country_code = ratings[0]['country']
if country_code in RATING_COUNTRY_MAP:
country = RATING_COUNTRY_MAP[country_code]
else:
country = COUNTRIES_MAP.get(country_code)
if country is not None and country_code != 'usa':
rating = f'{country}:{rating}'
else:
rating = f'Rated {rating}'
if not rating:
usa_rating = ''
local_rating = ''
for rating in ratings:
if rating['country'] == 'usa':
usa_rating = f"Rated {rating['name']}"
elif rating_country_code != 'usa' and rating['country'] == rating_country_code:
local_rating = rating['name']
country_code = rating['country']
if country_code in RATING_COUNTRY_MAP:
country = RATING_COUNTRY_MAP[country_code]
else:
country = COUNTRIES_MAP.get(country_code)
if country is not None:
local_rating = f'{country}:{local_rating}'
rating = local_rating if local_rating else usa_rating
return rating
def get_studio(movie):
studios = movie.get("studios", [])
if not studios or len(studios) == 0:
return None
name = studios[0]["name"]
return name
def get_tags(movie):
tags = []
tag_options = movie.get("tagOptions", [])
if tag_options:
for tag in tag_options:
tags.append(tag["name"])
return tags
def get_set(movie):
lists = movie.get("lists", None)
if not lists:
return None
name = ""
id = 0
score = -1.0
logger.debug(lists)
for l in lists:
if l["isOfficial"] and l["score"] > score:
score = l["score"]
name = l["name"]
id = l["id"]
if name and id:
logger.debug("name and id in get set")
logger.debug(name)
logger.debug(id)
return {
"name": name,
"id": id,
}
return None
def get_trailer(movie):
trailer_url = ""
originalLang = movie.get("originalLanguage", None)
if not originalLang:
originalLang = "eng"
trailers = movie.get("trailers", None)
if not trailers:
return None
for trailer in trailers:
if trailer["language"] == originalLang:
trailer_url = trailer["url"]
match = re.search("youtube", trailer_url)
if not match:
return None
trailer_id_match = re.search("\?v=[A-z]+", trailer_url)
if not trailer_id_match:
return None
trailer_id = trailer_id_match.group(0)
url = f'plugin://plugin.video.youtube/play/?video_id={trailer_id}'
return url
def get_unique_ids(movie):
unique_ids = {'tvdb': movie['id']}
remote_ids = movie.get('remoteIds')
if remote_ids:
for remote_id_info in remote_ids:
source_name = remote_id_info.get('sourceName')
if source_name in SUPPORTED_REMOTE_IDS:
unique_ids[SUPPORTED_REMOTE_IDS[source_name]] = remote_id_info['id']
return unique_ids

View File

@@ -0,0 +1,50 @@
import re
import xbmcgui
import xbmcplugin
from .simple_requests import HTTPError
from .tvdb import Request
from .utils import logger
MOVIE_URL_REGEX = re.compile(r'https?://thetvdb.com/movies/([\w-]+)', re.I)
TVDB_ID_HTML_REGEX = re.compile(r'<strong>TheTVDB\.com Movie ID</strong>\s+?<span>(\d+?)</span>', re.I)
TVDB_ID_XML_REGEX = re.compile(r'<uniqueid type="tvdb"[^>]*?>(\d+?)</uniqueid>', re.I)
def _get_tvdb_id_from_slug(movie_url):
try:
html = Request.make_web_request(movie_url)
except HTTPError as exc:
logger.error(str(exc))
return None
match = TVDB_ID_HTML_REGEX.search(html)
if match is not None:
return match.group(1)
return None
def get_movie_id_from_nfo(nfo, plugin_handle):
logger.debug(f'Parsing NFO:\n{nfo}')
movie_url_match = MOVIE_URL_REGEX.search(nfo)
tvdb_id = None
if movie_url_match is not None:
movie_url = movie_url_match.group(0)
tvdb_id = _get_tvdb_id_from_slug(movie_url)
logger.debug(f'Movie matched by TheTVDB URL in NFO: {tvdb_id}')
if tvdb_id is None:
tvdb_id_xml_match = TVDB_ID_XML_REGEX.search(nfo)
if tvdb_id_xml_match is not None:
tvdb_id = tvdb_id_xml_match.group(1)
logger.debug(f'Movie matched by uniqueid XML tag in NFO: {tvdb_id}')
if tvdb_id is None:
logger.debug('Unable to match the movie by NFO')
return
list_item = xbmcgui.ListItem(offscreen=True)
list_item.setUniqueIDs({'tvdb': tvdb_id}, 'tvdb')
xbmcplugin.addDirectoryItem(
handle=plugin_handle,
url=tvdb_id,
listitem=list_item,
isFolder=True
)

View File

@@ -0,0 +1,240 @@
# Copyright (c) 2021, Roman Miroshnychenko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
"""
A simple library for making HTTP requests with API similar to the popular "requests" library
It depends only on the Python standard library.
Supported:
* HTTP methods: GET, POST
* HTTP and HTTPS.
* Disabling SSL certificates validation.
* Request payload as form data and JSON.
* Custom headers.
* Basic authentication.
* Gzipped response content.
Not supported:
* Cookies.
* File upload.
"""
import gzip
import io
import json as _json
import ssl
from base64 import b64encode
from email.message import Message
from typing import Optional, Dict, Any, Tuple, Union, List
from urllib import request as url_request
from urllib.error import HTTPError as _HTTPError
from urllib.parse import urlparse, urlencode
__all__ = [
'RequestException',
'ConnectionError',
'HTTPError',
'get',
'post',
]
class RequestException(IOError):
def __repr__(self) -> str:
return self.__str__()
class ConnectionError(RequestException):
def __init__(self, message: str, url: str):
super().__init__(message)
self.message = message
self.url = url
def __str__(self) -> str:
return f'ConnectionError for url {self.url}: {self.message}'
class HTTPError(RequestException):
def __init__(self, response: 'Response'):
self.response = response
def __str__(self) -> str:
return f'HTTPError: {self.response.status_code} for url: {self.response.url}'
class HTTPMessage(Message):
def update(self, dct: Dict[str, str]) -> None:
for key, value in dct.items():
self[key] = value
class Response:
NULL = object()
def __init__(self):
self.encoding: str = 'utf-8'
self.status_code: int = -1
self.headers: Dict[str, str] = {}
self.url: str = ''
self.content: bytes = b''
self._text = None
self._json = self.NULL
def __str__(self) -> str:
return f'<Response [{self.status_code}]>'
def __repr__(self) -> str:
return self.__str__()
@property
def ok(self) -> bool:
return self.status_code < 400
@property
def text(self) -> str:
"""
:return: Response payload as decoded text
"""
if self._text is None:
self._text = self.content.decode(self.encoding)
return self._text
def json(self) -> Optional[Union[Dict[str, Any], List[Any]]]:
try:
if self._json is self.NULL:
self._json = _json.loads(self.content)
return self._json
except ValueError as exc:
raise ValueError('Response content is not a valid JSON') from exc
def raise_for_status(self) -> None:
if not self.ok:
raise HTTPError(self)
def _create_request(url_structure, params=None, data=None, headers=None, auth=None, json=None):
query = url_structure.query
if params is not None:
separator = '&' if query else ''
query += separator + urlencode(params)
full_url = url_structure.scheme + '://' + url_structure.netloc + url_structure.path
if query:
full_url += '?' + query
prepared_headers = HTTPMessage()
if headers is not None:
prepared_headers.update(headers)
body = None
if json is not None:
body = _json.dumps(json).encode('utf-8')
prepared_headers['Content-Type'] = 'application/json'
if body is None and data is not None:
body = urlencode(data).encode('utf-8')
prepared_headers['Content-Type'] = 'application/x-www-form-urlencoded'
if auth is not None:
encoded_credentials = b64encode((auth[0] + ':' + auth[1]).encode('utf-8')).decode('utf-8')
prepared_headers['Authorization'] = f'Basic {encoded_credentials}'
if 'Accept-Encoding' not in prepared_headers:
prepared_headers['Accept-Encoding'] = 'gzip'
return url_request.Request(full_url, body, prepared_headers)
def post(url: str,
params: Optional[Dict[str, Any]] = None,
data: Optional[Dict[str, Any]] = None,
headers: Optional[Dict[str, str]] = None,
auth: Optional[Tuple[str, str]] = None,
timeout: Optional[float] = None,
verify: bool = True,
json: Optional[Dict[str, Any]] = None) -> Response:
"""
POST request
This function assumes that a request body should be encoded with UTF-8
and by default sends Accept-Encoding: gzip header to receive response content compressed.
:param url: URL
:param params: URL query params
:param data: request payload as form data. If "data" or "json" are passed
then a POST request is sent
:param headers: additional headers
:param auth: a tuple of (login, password) for Basic authentication
:param timeout: request timeout in seconds
:param verify: verify SSL certificates
:param json: request payload as JSON. This parameter has precedence over "data", that is,
if it's present then "data" is ignored.
:return: Response object
"""
url_structure = urlparse(url)
request = _create_request(url_structure, params, data, headers, auth, json)
context = None
if url_structure.scheme == 'https':
context = ssl.SSLContext()
if not verify:
context.verify_mode = ssl.CERT_NONE
context.check_hostname = False
fp = None
try:
r = fp = url_request.urlopen(request, timeout=timeout, context=context)
content = fp.read()
except _HTTPError as exc:
r = exc
fp = exc.fp
content = fp.read()
except Exception as exc:
raise ConnectionError(str(exc), request.full_url) from exc
finally:
if fp is not None:
fp.close()
response = Response()
response.status_code = r.status if hasattr(r, 'status') else r.getstatus()
response.headers = r.headers
response.url = r.url if hasattr(r, 'url') else r.geturl()
if r.headers.get('Content-Encoding') == 'gzip':
temp_fo = io.BytesIO(content)
gzip_file = gzip.GzipFile(fileobj=temp_fo)
content = gzip_file.read()
response.content = content
return response
def get(url: str,
params: Optional[Dict[str, Any]] = None,
headers: Optional[Dict[str, str]] = None,
auth: Optional[Tuple[str, str]] = None,
timeout: Optional[float] = None,
verify: bool = True) -> Response:
"""
GET request
This function by default sends Accept-Encoding: gzip header
to receive response content compressed.
:param url: URL
:param params: URL query params
:param headers: additional headers
:param auth: a tuple of (login, password) for Basic authentication
:param timeout: request timeout in seconds
:param verify: verify SSL certificates
:return: Response object
"""
return post(url=url, params=params, headers=headers, auth=auth, timeout=timeout, verify=verify)

View File

@@ -0,0 +1,241 @@
import urllib.parse
from pprint import pformat
from typing import Optional
from . import simple_requests as requests
from .simple_requests import HTTPError
from .utils import logger
apikey = "edae60dc-1b44-4bac-8db7-65c0aaf5258b"
apikey_with_pin = "51bdbd35-bcd5-40d9-9bc3-788e24454baf"
USER_AGENT = 'TheTVDB v.4 Movies Scraper for Kodi'
class Auth:
logger.debug("logging in")
def __init__(self, url, apikey, pin="", **kwargs):
loginInfo = {"apikey": apikey}
if pin:
loginInfo["pin"] = pin
loginInfo["apikey"] = apikey_with_pin
loginInfo.update(kwargs)
logger.debug("body in auth call")
logger.debug(loginInfo)
headers = {
'User-Agent': USER_AGENT,
'Accept': 'application/json',
}
response = requests.post(url, headers=headers, json=loginInfo)
if not response.ok:
response.raise_for_status()
self.token = response.json()['data']['token']
def get_token(self):
return self.token
class Request:
def __init__(self, auth_token):
self.auth_token = auth_token
self.cache = {}
def make_api_request(self, url):
logger.debug(f"about to make request to API url {url}")
logger.debug(url)
data = self.cache.get(url, None)
if data:
return data
headers = {
'User-Agent': USER_AGENT,
'Accept': 'application/json',
'Authorization': f'Bearer {self.auth_token}'
}
response = requests.get(url, headers=headers)
if not response.ok:
response.raise_for_status()
data = response.json()['data']
logger.debug(f'API response:\n{pformat(data)}')
self.cache[url] = data
return data
@staticmethod
def make_web_request(url):
logger.debug(f"about to make request to web url {url}")
headers = {
'User-Agent': USER_AGENT,
'Accept': 'text/html',
}
response = requests.get(url, headers=headers)
if not response.ok:
response.raise_for_status()
return response.text
class Url:
def __init__(self):
self.base_url = "https://api4.thetvdb.com/v4"
def login_url(self):
return "{}/login".format(self.base_url)
def artwork_url(self, id, extended=False):
url = "{}/artwork/{}".format(self.base_url, id)
if extended:
url = "{}/extended".format(url)
return url
def movies_url(self, page=0):
url = "{}/movies".format(self.base_url, id)
return url
def movie_url(self, id, extended=False):
url = "{}/movies/{}".format(self.base_url, id)
if extended:
url = "{}/extended".format(url)
return url
def list_url(self, id, extended=False):
url = "{}/lists/{}".format(self.base_url, id)
if extended:
url = "{}/extended".format(url)
return url
def movie_translation_url(self, id, language="eng"):
url = f'{self.base_url}/movies/{id}/translations/{language}'
return url
def list_translation_url(self, id, language="eng"):
url = f'{self.base_url}/lists/{id}/translations/{language}'
return url
def search_url(self, query, filters):
filters["query"] = query
qs = urllib.parse.urlencode(filters)
url = "{}/search?{}".format(self.base_url, qs)
return url
class TVDB:
def __init__(self, apikey: str, pin="", **kwargs):
self.url = Url()
login_url = self.url.login_url()
self.auth = Auth(login_url, apikey, pin)
auth_token = self.auth.get_token()
self.request = Request(auth_token)
def get_artwork(self, id: int) -> dict:
"""Returns an artwork dictionary"""
url = self.url.artwork_url(id)
return self.request.make_api_request(url)
def get_artwork_extended(self, id: int) -> dict:
"""Returns an artwork extended dictionary"""
url = self.url.artwork_url(id, True)
return self.request.make_api_request(url)
def get_all_movies(self, page=0) -> list:
"""Returns a list of movies"""
url = self.url.movies_url(page)
return self.request.make_api_request(url)
def get_movie(self, id: int) -> dict:
"""Returns a movie dictionary"""
url = self.url.movie_url(id, False)
return self.request.make_api_request(url)
def get_movie_extended(self, id: int) -> dict:
"""Returns a movie extended dictionary"""
url = self.url.movie_url(id, True)
return self.request.make_api_request(url)
def get_movie_translation(self, id, lang: str) -> dict:
"""Returns a movie translation dictionary"""
url = self.url.movie_translation_url(id, lang)
return self.request.make_api_request(url)
def get_list_extended(self, id: int) -> dict:
"""Returns a movie translation dictionary"""
url = self.url.list_url(id, True)
return self.request.make_api_request(url)
def get_list_translation(self, id: int, lang: str) -> Optional[dict]:
"""Returns a movie translation dictionary"""
url = self.url.list_translation_url(id, lang)
result = self.request.make_api_request(url)
if result:
return result[0]
return None
def search(self, query, **kwargs) -> list:
"""Returns a list of search results"""
url = self.url.search_url(query, kwargs)
return self.request.make_api_request(url)
def get_movie_details_api(self, id, language="eng") -> dict:
try:
movie = self.get_movie_extended(id)
except HTTPError as exc:
logger.error(str(exc))
return {}
try:
english_translation = self.get_movie_translation(id, 'eng')
except HTTPError:
movie['overview'] = ''
else:
movie['overview'] = english_translation.get('overview') or ''
if language != 'eng':
try:
translation = self.get_movie_translation(id, language)
except HTTPError as exc:
logger.debug(str(exc))
pass
else:
translated_name = translation.get("name")
if translated_name:
movie["name"] = translated_name
translated_overview = translation.get("overview")
if translated_overview:
movie["overview"] = translated_overview
return movie
def get_movie_set_info(self, id, settings):
list_ = self.get_list_extended(id)
lang = settings.get("language", "eng")
name = list_.get("name", "")
overview = list_.get('overview', '')
try:
trans = self.get_list_translation(id, lang)
if trans:
name = trans.get("name") or name
overview = trans.get("overview") or overview
except requests.HTTPError:
pass
movie_id = None
entities = list_.get("entities", [])
if not entities:
return None
for item in entities:
if item["movieId"] is not None:
movie_id = item["movieId"]
break
return {
"movie_id": movie_id,
"name": name,
"overview": overview,
}
class Client:
_instance = None
def __new__(cls, settings=None):
settings = settings or {}
if cls._instance is None:
pin = settings.get("pin", "")
gender = settings.get("gender", "Other")
uuid = settings.get("uuid", "")
birth_year = settings.get("year", "")
cls._instance = TVDB(apikey, pin=pin, gender=gender, birthYear=birth_year, uuid=uuid)
return cls._instance

View File

@@ -0,0 +1,50 @@
import uuid
import xbmc
from xbmcaddon import Addon
from .constants import LANGUAGES_MAP, REVERSED_COUNTRIES_MAP
ADDON = Addon()
ADDON_ID = ADDON.getAddonInfo('id')
class logger:
log_message_prefix = '[{} ({})]: '.format(
ADDON_ID, ADDON.getAddonInfo('version'))
@staticmethod
def log(message, level=xbmc.LOGDEBUG):
message = logger.log_message_prefix + str(message)
xbmc.log(message, level)
@staticmethod
def info(message):
logger.log(message, xbmc.LOGINFO)
@staticmethod
def error(message):
logger.log(message, xbmc.LOGERROR)
@staticmethod
def debug(message):
logger.log(message, xbmc.LOGDEBUG)
def create_uuid():
return str(uuid.uuid4())
def get_language(path_settings):
language = path_settings.get('language')
if language is None:
language = ADDON.getSetting('language') or 'English'
language_code = LANGUAGES_MAP.get(language, 'eng')
return language_code
def get_rating_country_code(path_settings):
rating_country = path_settings.get('rating_country')
if rating_country is None:
rating_country = ADDON.getSetting('rating_country') or 'USA'
return REVERSED_COUNTRIES_MAP[rating_country]

View File

@@ -0,0 +1,317 @@
<?xml version="1.0" ?>
<settings version="1">
<section id="metadata.tvshows.thetvdb.com.v4.python">
<category id="general" label="128" help="">
<group id="1">
<setting id="language" type="string" label="30000" help="">
<level>0</level>
<default>English</default>
<constraints>
<options>
<option>Abkhaz</option>
<option>Afar</option>
<option>Afrikaans</option>
<option>Akan</option>
<option>Albanian</option>
<option>Amharic</option>
<option>Arabic</option>
<option>Aragonese</option>
<option>Armenian</option>
<option>Assamese</option>
<option>Avaric</option>
<option>Avestan</option>
<option>Aymara</option>
<option>Azerbaijani</option>
<option>Bambara</option>
<option>Bashkir</option>
<option>Basque</option>
<option>Belarusian</option>
<option>Bengali</option>
<option>Bihari</option>
<option>Bislama</option>
<option>Bosnian</option>
<option>Breton</option>
<option>Bulgarian</option>
<option>Burmese</option>
<option>Catalan</option>
<option>Chamorro</option>
<option>Chechen</option>
<option>Chichewa</option>
<option>Chinese - Cantonese</option>
<option>Chinese - China</option>
<option>Chinese - Taiwan</option>
<option>Chuvash</option>
<option>Cornish</option>
<option>Corsican</option>
<option>Cree</option>
<option>Croatian</option>
<option>Czech</option>
<option>Danish</option>
<option>Divehi</option>
<option>Dutch</option>
<option>Dzongkha</option>
<option>English</option>
<option>Esperanto</option>
<option>Estonian</option>
<option>Ewe</option>
<option>Faroese</option>
<option>Fijian</option>
<option>Finnish</option>
<option>French</option>
<option>Fula</option>
<option>Galician</option>
<option>Georgian</option>
<option>German</option>
<option>Greek</option>
<option>Guaraní</option>
<option>Gujarati</option>
<option>Haitian</option>
<option>Hausa</option>
<option>Hebrew</option>
<option>Herero</option>
<option>Hindi</option>
<option>Hiri Motu</option>
<option>Hungarian</option>
<option>Icelandic</option>
<option>Ido</option>
<option>Igbo</option>
<option>Indonesian</option>
<option>Interlingua</option>
<option>Interlingue</option>
<option>Inuktitut</option>
<option>Inupiaq</option>
<option>Irish</option>
<option>Italian</option>
<option>Japanese</option>
<option>Javanese</option>
<option>Kalaallisut</option>
<option>Kannada</option>
<option>Kanuri</option>
<option>Kashmiri</option>
<option>Kazakh</option>
<option>Khmer</option>
<option>Kikuyu</option>
<option>Kinyarwanda</option>
<option>Kirghiz</option>
<option>Kirundi</option>
<option>Komi</option>
<option>Kongo</option>
<option>Korean</option>
<option>Kurdish</option>
<option>Kwanyama</option>
<option>Lao</option>
<option>Latin</option>
<option>Latvian</option>
<option>Limburgish</option>
<option>Lingala</option>
<option>Lithuanian</option>
<option>Luba-Katanga</option>
<option>Luganda</option>
<option>Luxembourgish</option>
<option>Macedonian</option>
<option>Malagasy</option>
<option>Malay</option>
<option>Malayalam</option>
<option>Maltese</option>
<option>Manx</option>
<option>Marathi</option>
<option>Marshallese</option>
<option>Mongolian</option>
<option>Māori</option>
<option>Nauru</option>
<option>Navajo</option>
<option>Ndonga</option>
<option>Nepali</option>
<option>North Ndebele</option>
<option>Northern Sami</option>
<option>Norwegian</option>
<option>Nuosu</option>
<option>Occitan</option>
<option>Ojibwe</option>
<option>Old Church Slavonic</option>
<option>Oriya</option>
<option>Oromo</option>
<option>Ossetian</option>
<option>Panjabi</option>
<option>Pashto</option>
<option>Persian</option>
<option>Polish</option>
<option>Portuguese - Brazil</option>
<option>Portuguese - Portugal</option>
<option>Pāli</option>
<option>Quechua</option>
<option>Romanian</option>
<option>Romansh</option>
<option>Russian</option>
<option>Samoan</option>
<option>Sango</option>
<option>Sanskrit</option>
<option>Sardinian</option>
<option>Scottish Gaelic</option>
<option>Serbian</option>
<option>Shona</option>
<option>Sindhi</option>
<option>Sinhala</option>
<option>Slovak</option>
<option>Slovene</option>
<option>Somali</option>
<option>South Ndebele</option>
<option>Southern Sotho</option>
<option>Spanish</option>
<option>Sundanese</option>
<option>Swahili</option>
<option>Swati</option>
<option>Swedish</option>
<option>Tagalog</option>
<option>Tahitian</option>
<option>Tajik</option>
<option>Tamil</option>
<option>Tatar</option>
<option>Telugu</option>
<option>Thai</option>
<option>Tibetan Standard</option>
<option>Tigrinya</option>
<option>Tonga</option>
<option>Tsonga</option>
<option>Tswana</option>
<option>Turkish</option>
<option>Turkmen</option>
<option>Twi</option>
<option>Uighur</option>
<option>Ukrainian</option>
<option>Urdu</option>
<option>Uzbek</option>
<option>Venda</option>
<option>Vietnamese</option>
<option>Volapük</option>
<option>Walloon</option>
<option>Welsh</option>
<option>Western Frisian</option>
<option>Wolof</option>
<option>Xhosa</option>
<option>Yiddish</option>
<option>Yoruba</option>
<option>Zhuang</option>
<option>Zulu</option>
</options>
</constraints>
<control type="list" format="string">
<heading>30000</heading>
</control>
</setting>
<setting id="rating_country" type="string" label="30013" help="">
<level>0</level>
<default>USA</default>
<constraints>
<options>
<option>Argentina</option>
<option>Armenia</option>
<option>Australia</option>
<option>Austria</option>
<option>Belgium</option>
<option>Brazil</option>
<option>Bulgaria</option>
<option>Cambodia</option>
<option>Canada</option>
<option>Chile</option>
<option>Colombia</option>
<option>Croatia</option>
<option>Denmark</option>
<option>Ecuador</option>
<option>El Salvador</option>
<option>Estonia</option>
<option>Finland</option>
<option>France</option>
<option>Germany</option>
<option>Great Britain</option>
<option>Greece</option>
<option>Hong Kong</option>
<option>Hungary</option>
<option>Iceland</option>
<option>India</option>
<option>Indonesia</option>
<option>Ireland</option>
<option>Israel</option>
<option>Italy</option>
<option>Jamaica</option>
<option>Japan</option>
<option>Kazakhstan</option>
<option>Latvia</option>
<option>Lithuania</option>
<option>Malaysia</option>
<option>Maldives</option>
<option>Malta</option>
<option>Mexico</option>
<option>Morocco</option>
<option>New Zealand</option>
<option>Nigeria</option>
<option>Norway</option>
<option>Peru</option>
<option>Philippines</option>
<option>Poland</option>
<option>Portugal</option>
<option>Romania</option>
<option>Russia</option>
<option>Saudi Arabia</option>
<option>Singapore</option>
<option>Slovakia</option>
<option>Slovenia</option>
<option>South Africa</option>
<option>South Korea</option>
<option>Spain</option>
<option>Sweden</option>
<option>Taiwan</option>
<option>Thailand</option>
<option>The Netherlands</option>
<option>Turkey</option>
<option>Ukraine</option>
<option>United Arab Emirates</option>
<option>USA</option>
<option>Venezuela</option>
<option>Vietnam</option>
</options>
</constraints>
<control type="list" format="string">
<heading>30013</heading>
</control>
</setting>
<setting id="get_tags" type="boolean" label="30012" help="">
<level>0</level>
<default>true</default>
<control type="toggle"/>
</setting>
<setting id="gender" type="string" label="30006" help="">
<level>0</level>
<default>Other</default>
<constraints>
<options>
<option label="30007">Male</option>
<option label="30008">Female</option>
<option label="30009">Other</option>
</options>
</constraints>
<control type="list" format="string">
<heading>30003</heading>
</control>
</setting>
<setting id="year" type="integer" label="30010" help="">
<level>0</level>
<default>1900</default>
<control type="edit" format="integer">
<heading>30010</heading>
</control>
</setting>
<setting id="pin" type="string" label="30011" help="">
<level>0</level>
<default/>
<constraints>
<allowempty>true</allowempty>
</constraints>
<control type="edit" format="string">
<heading>30011</heading>
</control>
</setting>
</group>
</category>
</section>
</settings>

View File

@@ -0,0 +1,5 @@
from resources.lib import actions
from resources.lib.exception_logger import log_exception
with log_exception():
actions.run()