UNPKG
@vot.js/core
Version:
latest (2.4.12)
2.4.12
2.4.11
2.4.10
2.4.9
2.4.8
2.4.7
2.4.6
2.4.5
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
2.3.12
2.3.11
2.3.10
2.3.9
2.3.8
2.3.7
2.3.6
2.3.5
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.6
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.13
2.1.12
2.1.11
2.1.10
2.1.9
2.1.8
2.1.7
2.1.6
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.19
2.0.18
2.0.17
2.0.16
2.0.15
2.0.14
2.0.13
2.0.12
2.0.11
2.0.10
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
core package
github.com/FOSWLY/vot.js
FOSWLY/vot.js
@vot.js/core
/
dist
/
utils
/
vot.js
14 lines
(13 loc)
•
319 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{
VideoService
}
from
"../types/service.js"
;
export
function
convertVOT
(
service, videoId, url
) {
if
(service ===
VideoService
.
patreon
) {
return
{
service
:
"mux"
,
videoId
:
new
URL
(url).
pathname
.
slice
(
1
), }; }
return
{ service, videoId, }; }