Compare commits

..

13 Commits

Author SHA1 Message Date
ashley
10a18905ec Update html/watch.ejs 2025-05-27 02:41:59 +02:00
Ashley ////
f661ee76a9 hai 2025-05-27 02:27:31 +02:00
Ashley ////
024bea2b33 hai 2025-05-27 02:24:52 +02:00
ashley
488d98d1f1 update versions 2025-05-27 01:51:47 +02:00
ashley
9ec1a3a718 fix download pages 2025-05-27 01:47:57 +02:00
ashley
bb28ed0de6 Update html/discover.ejs 2025-05-27 01:42:09 +02:00
ashley
43c2b1111e Update html/discover.ejs 2025-05-27 01:41:09 +02:00
ashley
3f471059f8 Update html/discover.ejs 2025-05-27 01:38:30 +02:00
ashley
46dc456562 Update html/discover.ejs 2025-05-27 01:34:52 +02:00
ashley
0c346781b8 oops 2025-05-27 01:31:03 +02:00
ashley
6824df229b try 2025-05-27 01:28:19 +02:00
ashley
00749f907d Update html/discover.ejs 2025-05-27 01:23:06 +02:00
ashley
e50e7b730a Add bg 2025-05-27 01:19:30 +02:00
4 changed files with 64 additions and 9 deletions

View File

@ -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;">

View File

@ -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

View File

@ -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);
});

View File

@ -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";