Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Remove Jamendo and Wikimedia Commons from audio meta sources (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat authored Feb 1, 2022
1 parent 53ca0f8 commit 268532a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/components/VMetaSearch/VMetaSearchForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default {
computed: {
unsupportedByUsefilter() {
if (this.type === AUDIO) {
return 'CC Mixter, Jamendo, or Wikimedia Commons'
return 'CC Mixter'
}
if (this.type === VIDEO) return 'Wikimedia Commons or Youtube'
if (this.type === IMAGE) return 'Google Images'
Expand Down
21 changes: 0 additions & 21 deletions src/utils/get-legacy-source-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,6 @@ export const legacySourceMap = {
}
},
},
Jamendo: {
// https://www.jamendo.com/legal/creative-commons
audio(search) {
return {
url: 'https://www.jamendo.com/search/tracks',
query: {
q: search.q,
},
}
},
},
'Open Clip Art Library': {
image(search) {
return {
Expand Down Expand Up @@ -157,16 +146,6 @@ export const legacySourceMap = {
},
},
'Wikimedia Commons': {
audio(search) {
return {
url: 'https://commons.wikimedia.org/w/index.php',
query: {
search: `${search.q}`,
title: 'Special:MediaSearch',
type: 'audio',
},
}
},
video(search) {
return {
url: 'https://commons.wikimedia.org/w/index.php',
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/content-types.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const contentTypes = [
name: 'Audio',
url: '/search/audio/?q=cat',
supported: false,
sources: 5,
sources: 3,
},
]

Expand Down

0 comments on commit 268532a

Please sign in to comment.