@micmac/youtube
Advanced tools
Comparing version 2.1.1 to 2.1.2
17
main.js
@@ -113,9 +113,12 @@ // fonction searchVideos retourne les 10 dernières videos de la chaine beerus | ||
let lgTxt = _chaine.length; | ||
let chaine1 = _chaine.slice(0,Math.max(Math.floor(lgTxt/2),300)); | ||
let chaine2 = _chaine.slice(Math.max(Math.floor(lgTxt/2),300)); | ||
let chaine1 = _chaine.slice(0, Math.max(Math.floor(lgTxt / 2), 300)); | ||
let chaine2 = _chaine.slice(Math.max(Math.floor(lgTxt / 2), 300)); | ||
let lastSpacePos = chaine1.lastIndexOf(' '); | ||
let pieceOfChaine = chaine1.slice(lastSpacePos); | ||
chaine1 = chaine1.slice(0, lastSpacePos); | ||
chaine2 = pieceOfChaine + chaine2; | ||
return {chaine1: chaine1,chaine2: chaine2}; | ||
}; | ||
if (lgTxt !== chaine1.length) { | ||
let pieceOfChaine = chaine1.slice(lastSpacePos); | ||
chaine1 = chaine1.slice(0, lastSpacePos); | ||
chaine2 = pieceOfChaine + chaine2; | ||
} | ||
return {chaine1: chaine1, chaine2: chaine2}; | ||
} | ||
; |
{ | ||
"name": "@micmac/youtube", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "utilisation api youtube data", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4749
118