Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/PtpUploader/Source/Karagarga.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def Login(self):
MyGlobals.Logger.info( "Logging in to Karagarga." )

postData = { "username": self.Username, "password": self.Password }
result = MyGlobals.session.post( "http://karagarga.in/takelogin.php", data = postData )
result = MyGlobals.session.post( "https://karagarga.in/takelogin.php", data = postData )
result.raise_for_status()
self.__CheckIfLoggedInFromResponse( result.text )

Expand Down Expand Up @@ -262,7 +262,7 @@ def __ParsePage( self, logger, releaseInfo, html, parseForExternalCreateJob = Fa
raise PtpUploaderException( JobRunningState.Ignored_NotSupported, "Wrongly categorized DVDR." )

def __DownloadNfo(self, logger, releaseInfo):
url = "http://karagarga.in/details.php?id=%s&filelist=1" % releaseInfo.AnnouncementId
url = "https://karagarga.in/details.php?id=%s&filelist=1" % releaseInfo.AnnouncementId
logger.info( "Collecting info from torrent page '%s'." % url )

result = MyGlobals.session.get( url )
Expand Down Expand Up @@ -305,7 +305,7 @@ def ParsePageForExternalCreateJob( self, logger, releaseInfo, html ):

def DownloadTorrent(self, logger, releaseInfo, path):
# Any non empty filename can be specified.
url = "http://karagarga.in/down.php/%s/filename.torrent" % releaseInfo.AnnouncementId
url = "https://karagarga.in/down.php/%s/filename.torrent" % releaseInfo.AnnouncementId
logger.info( "Downloading torrent file from '%s' to '%s'." % ( url, path ) )

result = MyGlobals.session.get( url )
Expand All @@ -330,7 +330,7 @@ def GetIdFromUrl(self, url):
return result.group( 1 )

def GetUrlFromId(self, id):
return "http://karagarga.in/details.php?id=" + id
return "https://karagarga.in/details.php?id=" + id

def GetIdFromAutodlIrssiUrl( self, url ):
# https://karagarga.in/down.php/10287/Zhuangzhuang%20Tian%20-%20Lan%20feng%20zheng%20AKA%20The%20Blue%20Kite.torrent
Expand Down