mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 23:51:44 +00:00
fix: enhance metadata fetching logic and improve selector for episodes
This commit is contained in:
3
dist/uhd/meta.js
vendored
3
dist/uhd/meta.js
vendored
@@ -30,6 +30,7 @@ const getMeta = function (_a) {
|
||||
var _b;
|
||||
try {
|
||||
const { axios, cheerio } = providerContext;
|
||||
console.log("Fetching metadata from UHD...", link, providerContext);
|
||||
const url = link;
|
||||
const res = yield axios.get(url, { headers });
|
||||
const html = yield res.data;
|
||||
@@ -41,7 +42,7 @@ const getMeta = function (_a) {
|
||||
// Links
|
||||
const episodes = [];
|
||||
// new structure
|
||||
$(".mks_separator").each((index, element) => {
|
||||
$(".mks_separator,p:contains('mks_separator')").each((index, element) => {
|
||||
$(element)
|
||||
.nextUntil(".mks_separator")
|
||||
.each((index, element) => {
|
||||
|
||||
Reference in New Issue
Block a user