[1.4.2] craftTracks - cannot read property #40
Answered
by
efremych
efremych
asked this question in
Помощь с ошибкой
-
Ошибку данного скрипта тоже у себя стоит искать? TypeError: Cannot read property 'hasOwnProperty' of undefined ругается сюда function findAvailablePosition() {
let value = 5;
if (params.query.hasOwnProperty('seed_genres')) {
value -= params.query.seed_genres.split(',').length;
} function spotifyRecommends() {
let savedTracks = Source.getSavedTracks();
let savedTracksLastOne = Selector.sliceFirst(savedTracks, 1);
let savedTracksRandom = Selector.sliceAllExceptFirst(savedTracks, 1);
savedTracksRandom = Selector.sliceRandom(savedTracksRandom, 2);
let savedTracksSample = Combiner.alternate('max',savedTracksLastOne, savedTracksRandom);
Order.shuffle(savedTracksSample);
let recomTracks = Source.craftTracks(savedTracksSample);
Playlist.saveWithReplace({
id: SpotifyRecommends_PLAYLIST_ID,
tracks: recomTracks,
description: mySetDescription(savedTracksSample,'time','craft'),
});
console.log('Число запросов Mix365', CustomUrlFetchApp.getCountRequest());
} |
Beta Was this translation helpful? Give feedback.
Answered by
efremych
Feb 6, 2021
Replies: 1 comment
-
Здесь также ошибка ушла после обновления кода |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Chimildic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Здесь также ошибка ушла после обновления кода