Skip to content

Commit

Permalink
Merge branch 'main' into sort-tracks-by-release-dates
Browse files Browse the repository at this point in the history
  • Loading branch information
jesus2099 committed May 3, 2024
2 parents 3ea59be + 7029bd4 commit b660bda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/mb_enhanced_cover_art_uploads/providers/discogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CoverArtProvider } from './base';

// Not sure if this changes often. If it does, we might have to parse it from the
// JS sources somehow.
const QUERY_SHA256 = 'cd0fe8a7199e97a9027f676838dd25bf88346435f7096fddd79b055d68ea98c8';
const QUERY_SHA256 = '7ccbbc8e37ee1d321d9dc70f18a6c25c33c809c03aa8e13953d328ecd5f5ad8a';

interface ImageInfo {
sourceUrl: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable jest/no-disabled-tests */
import { DiscogsProvider } from '@src/mb_enhanced_cover_art_uploads/providers/discogs';
import { setupPolly } from '@test-utils/pollyjs';
import { itBehavesLike } from '@test-utils/shared-behaviour';
Expand Down Expand Up @@ -35,7 +36,7 @@ describe('discogs provider', () => {
itBehavesLike(urlMatchingSpec, { provider, supportedUrls, unsupportedUrls });
});

describe('extracting images', () => {
describe.skip('extracting images', () => {
const extractionCases = [{
description: 'release',
url: 'https://www.discogs.com/release/9892912',
Expand Down Expand Up @@ -64,7 +65,7 @@ describe('discogs provider', () => {
itBehavesLike(findImagesSpec, { provider, extractionCases, extractionFailedCases, pollyContext });
});

describe('maximising image', () => {
describe.skip('maximising image', () => {
it('finds the image', async () => {
const maxUrl = await DiscogsProvider.maximiseImage(new URL('https://i.discogs.com/wAcTcCu1v8cmYfw_D_I00DNR_RcxJfBUMb3ls7yG9Wo/rs:fit/g:sm/q:40/h:300/w:300/czM6Ly9kaXNjb2dz/LWRhdGFiYXNlLWlt/YWdlcy9SLTk4OTI5/MTItMTU3OTQ1Njcw/Ny0yMzIwLmpwZWc.jpeg'));

Expand All @@ -80,7 +81,7 @@ describe('discogs provider', () => {
});
});

describe('caching API responses', () => {
describe.skip('caching API responses', () => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Needed to spy on private method.
const requestSpy = jest.spyOn(DiscogsProvider as any, 'actuallyGetReleaseImages');
const discogsUrl = new URL('https://www.discogs.com/release/9892912');
Expand Down

0 comments on commit b660bda

Please sign in to comment.