# -*- coding: utf-8 -*-

'''
	Gaia Add-on
	Copyright (C) 2016 Gaia

	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 <http://www.gnu.org/licenses/>.
'''

from lib.providers.core.spot import ProviderSpotJson

class Provider(ProviderSpotJson):

	_Link	= ['https://nzbserver.com']

	##############################################################################
	# INITIALIZE
	##############################################################################

	def initialize(self):
		ProviderSpotJson.initialize(self,
			name					= 'NZBServer',
			description				= '{name} is a usenet indexer based on {fork}. The API contains many English titles, but is also a great source for other European languages.',
			rank					= 2, # Because of the continuous VPN block below.

			# NZBserver still works, however, the download link/button now displays a Dutch notifcation saying you need a VPN to access NZBserver.
			# Even with a Netherland VPN, the message remains.
			# They probably want to force people to use the advertised VPN, because they earn comission for it, and then block any other VPN IP.
			# 2023-07-10 - check this in a few weeks/months again to see if they removed this restriction.
			# 2023-08-18 - VPN restriction still in place.
			# 2025-01-02 - VPN restriction still in place.
			status					= ProviderSpotJson.StatusDead,

			link					= Provider._Link,

			# Does not support ID searches.
			supportMovieImdb		= False,

			# Does not support ID searches.
			supportShowTvdb			= False,
			supportShowImdb			= False,

			# Returns random episodes of the title.
			supportShowTitle		= False,
		)
