Skip to content
This repository has been archived by the owner on Sep 10, 2020. It is now read-only.

Fix: Change headers and response parser due to new API #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions resources/lib/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def get_album(albumId):
@plugin.route('/detail/<seasonId>', name="detail")
def video_detail(seasonId):
detail = Meiju.video_detail(seasonId)

season_data = detail["data"]["season"]
title = season_data["title"]
SEASON_CACHE[seasonId] = detail["data"] # store season detail
Expand Down
9 changes: 5 additions & 4 deletions resources/lib/rrmj.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
FAKE_HEADERS = {
"a": "cf2ecd4d-dea3-40ca-814f-3f0462623b1c",
"b": "",
"clientType": "android_%E5%B0%8F%E7%B1%B3",
"clientVersion": "3.5.8",
"clientType": "android_RRMJ",
"clientVersion": "3.6.3",
"c": "5a1fb134-9384-4fc8-a5ae-6e711e24afc1",
"d": "",
"e": "d4dd075d894dd2b8c81f96062dbe7dcbf7d467fd",
"token": TOKEN,
"token": "2c3cc52ab3a6436e96806f2a0cf9de54",
"Authentication": "RRTV 470164b995ea4aa5a53f9e5cbceded472:IxIYBj:LPWfRb:I9gvePR5R2N8muXD7NWPCj"
}


Expand Down Expand Up @@ -125,7 +126,7 @@ def hot_word(self):
class RRMJResolver(RenRenMeiJu):

def get_by_sid(self, seasonId, episodeSid, quality):
API = "/video/findM3u8ByEpisodeSid"
API = "/video/findM3u8ByEpisodeSidAuth"
url = SERVER + API
headers = self.header
l2 = str(int(time.time()) * 1000 - 28800000)
Expand Down