temporary

This commit is contained in:
matteo
2019-02-17 16:41:29 +01:00
parent f72ad098f9
commit 746c239f03
2 changed files with 16 additions and 13 deletions
+2 -2
View File
@@ -137,9 +137,9 @@ class VideoInfo extends React.Component {
</Tab>
<Tab className="text-white" eventKey="wikipedia" title="Wikipedia">
<Wikipedia
title={this.props.location.state.title}
title={'undefined' !== typeof this.props.location.state ? this.props.location.state.title : undefined}
title2={ytclear(this.state.VideoDetails.snippet.title).split('-')[1]}
artist={this.props.location.state.artist}
artist={'undefined' !== typeof this.props.location.state ? this.props.location.state.artist : undefined}
artist2={ytclear(this.state.VideoDetails.snippet.title).split('-')[0]}
key={this.props.videoId}
videoId={this.props.videoId}
+3
View File
@@ -40,6 +40,9 @@ class Wikipedia extends Component {
wikidatakeys: Object.keys(wikidatatmp.claims),
isWDataLoaded: true
});
wdk.getManyEntities(Object.keys(wikidatatmp.claims), 'en').then(
res=> console.info(res,'eee')
)
if (wikidatatmp.sitelinks.enwiki)
wikijs()
.page(wikidatatmp.sitelinks.enwiki.title)