mirror of
https://codeberg.org/ashley/poke
synced 2025-06-19 12:12:09 +00:00
Compare commits
13 Commits
dcf3b20fac
...
10a18905ec
Author | SHA1 | Date | |
---|---|---|---|
![]() |
10a18905ec | ||
![]() |
f661ee76a9 | ||
![]() |
024bea2b33 | ||
![]() |
488d98d1f1 | ||
![]() |
9ec1a3a718 | ||
![]() |
bb28ed0de6 | ||
![]() |
43c2b1111e | ||
![]() |
3f471059f8 | ||
![]() |
46dc456562 | ||
![]() |
0c346781b8 | ||
![]() |
6824df229b | ||
![]() |
00749f907d | ||
![]() |
e50e7b730a |
@ -1138,19 +1138,19 @@ Privacy
|
||||
|
||||
|
||||
<% if (tab == "search") { %>
|
||||
<a href="/app"><-- go back to trendsz </a><br>
|
||||
<br> <span>
|
||||
<a href="/app"><-- go to home </a>
|
||||
<span style="display:none">
|
||||
Search videos on poke! poke is a youtube front end so all of the videos on youtube should workm!!
|
||||
</span>
|
||||
<div class=search>
|
||||
|
||||
<form action="/app">
|
||||
|
||||
|
||||
|
||||
<input class="search-bar" autocomplete="on" id="fname" name="mobilesearch" placeholder="Search some videos lol "style="color:#fff;font-family:Inter,sans-serif;border-radius: 8px;">
|
||||
<input class="search-bar" autocomplete="on" id="fname" name="mobilesearch" placeholder="Search! "style="background: linear-gradient(90deg, hsla(235, 21%, 21%, 1) 0%, hsla(194, 41%, 22%, 1) 50%, hsla(174, 48%, 20%, 1) 100%);color:#fff;font-family:Inter,sans-serif;border-radius: 9999px;">
|
||||
|
||||
|
||||
<button class="btn btn-success" style="border-radius:1em" type=submit>
|
||||
<button class="btn btn-success" style="border-radius:1em;display:none;" type=submit>
|
||||
<i class="fa-light fa-search" style="margin: auto;"></i></button></form>
|
||||
<img src="https://t.poketube.fun/t/rep.gif" style="border:0;width: 0;visibility: hidden;">
|
||||
|
||||
|
@ -3471,7 +3471,62 @@ More Epic options owo~
|
||||
// @license-end
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const video = document.querySelector('video');
|
||||
|
||||
if (!video) return;
|
||||
|
||||
if ('mediaSession' in navigator) {
|
||||
// Set metadata
|
||||
navigator.mediaSession.metadata = new MediaMetadata({
|
||||
title: "<%- inv_vid.title %>",
|
||||
artist: "<%= video?.Channel?.Name || k.Video.Channel.Name %>",
|
||||
album: "Poke",
|
||||
artwork: [
|
||||
{
|
||||
src: "https://i.ytimg.com/vi/<%=inv_vid.videoId%>/maxresdefault.jpg",
|
||||
sizes: "1280x720",
|
||||
type: "image/jpeg"
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
// Update playback state
|
||||
const updatePositionState = () => {
|
||||
if ('setPositionState' in navigator.mediaSession) {
|
||||
navigator.mediaSession.setPositionState({
|
||||
duration: video.duration || 0,
|
||||
playbackRate: video.playbackRate || 1,
|
||||
position: video.currentTime || 0
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
video.addEventListener('timeupdate', updatePositionState);
|
||||
video.addEventListener('ratechange', updatePositionState);
|
||||
video.addEventListener('loadedmetadata', updatePositionState);
|
||||
|
||||
// Media control handlers
|
||||
navigator.mediaSession.setActionHandler('play', () => {
|
||||
video.play();
|
||||
});
|
||||
|
||||
navigator.mediaSession.setActionHandler('pause', () => {
|
||||
video.pause();
|
||||
});
|
||||
|
||||
navigator.mediaSession.setActionHandler('seekto', (details) => {
|
||||
if (details.fastSeek && 'fastSeek' in video) {
|
||||
video.fastSeek(details.seekTime);
|
||||
} else {
|
||||
video.currentTime = details.seekTime;
|
||||
}
|
||||
updatePositionState();
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0-or-later
|
||||
|
||||
|
@ -81,7 +81,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||
var q = "18";
|
||||
if (req.query.q) q = req.query.q;
|
||||
|
||||
const url = `${config.videourl}latest_version?id=${v}&itag=${q}&local=true`;
|
||||
const url = `${config.videourl}/latest_version?id=${v}&itag=${q}&local=true`;
|
||||
|
||||
res.redirect(url);
|
||||
});
|
||||
|
@ -21,8 +21,8 @@ class InnerTubePokeVidious {
|
||||
this.param_legacy = "CgIIAdgDAQ%3D%3D"
|
||||
this.apikey = "AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8"
|
||||
this.ANDROID_API_KEY = "AIzaSyA8eiZmM1FaDVjRy-df2KTyQ_vz_yYM39w"
|
||||
this.ANDROID_APP_VERSION = "19.14.42"
|
||||
this.ANDROID_VERSION = "13"
|
||||
this.ANDROID_APP_VERSION = "20.20.41" // https://www.apkmirror.com/apk/google-inc/youtube/youtube-20-20-41-release/
|
||||
this.ANDROID_VERSION = "16" // https://en.wikipedia.org/wiki/Android_version_history
|
||||
this.useragent = config.useragent || "PokeTube/2.0.0 (GNU/Linux; Android 14; Trisquel 11; poketube-vidious; like FreeTube)"
|
||||
this.INNERTUBE_CONTEXT_CLIENT_VERSION = "1"
|
||||
this.region = "region=US";
|
||||
|
Loading…
x
Reference in New Issue
Block a user