File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -314,8 +314,8 @@ export default class OtotoyProvider extends MetadataProvider {
314314 return albumMeta ;
315315 }
316316
317- extractEmbeddedJson < Data > ( webUrl : URL , maxTimestamp ?: number ) : Promise < CacheEntry < Data > > {
318- return this . fetchJSON < Data > ( webUrl , {
317+ fetchAndScrapePackagePage ( webUrl : URL , maxTimestamp ?: number ) : Promise < CacheEntry < PackagePage > > {
318+ return this . fetchJSON < PackagePage > ( webUrl , {
319319 policy : { maxTimestamp } ,
320320 responseMutator : async ( response ) => {
321321 const html = await response . text ( ) ;
@@ -342,7 +342,7 @@ export class OtotoyReleaseLookup extends ReleaseLookup<OtotoyProvider, PackagePa
342342 // Entity is already defined for ID/URL lookups.
343343 const webUrl = this . provider . constructUrl ( this . entity ! ) ;
344344 this . releaseUrl = webUrl ;
345- const { content : release , timestamp } = await this . provider . extractEmbeddedJson < PackagePage > (
345+ const { content : release , timestamp } = await this . provider . fetchAndScrapePackagePage (
346346 webUrl ,
347347 this . options . snapshotMaxTimestamp ,
348348 ) ;
You can’t perform that action at this time.
0 commit comments