Archived
pozzino acchiapparti le intestinali brutte
This commit is contained in:
+8
-3
@@ -73,7 +73,7 @@ class Wikipedia extends Component {
|
||||
}
|
||||
})
|
||||
.then(resRecordingQuery => {
|
||||
let musicbrainzWorkId = resRecordingQuery.data.relations.map(x => x['target-type'] === 'work' ? x.work.id : "").toString() || P435;
|
||||
let musicbrainzWorkId = resRecordingQuery.data.relations.map(x => x['target-type'] === 'work' ? x.work.id.toString() : "") || P435.toString();
|
||||
axios.get(`${musicbrainzBaseUrl}/work/${musicbrainzWorkId}`, {
|
||||
params:{
|
||||
'inc': 'artist-rels url-rels',
|
||||
@@ -108,7 +108,7 @@ class Wikipedia extends Component {
|
||||
}
|
||||
})
|
||||
.then(resRecordingQuery => {
|
||||
let musicbrainzWorkId = resRecordingQuery.data.relations.map(x => x['target-type'] === 'work' ? x.work.id : "").toString() || P435;
|
||||
let musicbrainzWorkId = resRecordingQuery.data.relations.map(x => x['target-type'] === 'work' ? x.work.id.toString() : "") || P435.toString();
|
||||
axios.get(`${musicbrainzBaseUrl}/work/${musicbrainzWorkId}`, {
|
||||
params:{
|
||||
'inc': 'artist-rels url-rels',
|
||||
@@ -205,7 +205,12 @@ class Wikipedia extends Component {
|
||||
let title = this.props.title || this.props.title2;
|
||||
axios.get(wdk.searchEntities(`${title.trim()}`))
|
||||
.then(wikidataSearchRes => {
|
||||
this.getWikidataPage(wikidataSearchRes.data.search[0].title)
|
||||
try{
|
||||
this.getWikidataPage(wikidataSearchRes.data.search[0].title)
|
||||
}
|
||||
catch(e){
|
||||
console.error(e)
|
||||
}
|
||||
})
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
Reference in New Issue
Block a user