Compare commits

..

No commits in common. "10a18905eccf370d533d918760d1607757f8e6b6" and "dcf3b20fac627bf68f0a73384f012c571d032057" have entirely different histories.

4 changed files with 9 additions and 64 deletions

View File

@ -1138,8 +1138,8 @@ Privacy
<% if (tab == "search") { %>
<a href="/app"><-- go to home </a>
<span style="display:none">
<a href="/app"><-- go back to trendsz </a><br>
<br> <span>
Search videos on poke! poke is a youtube front end so all of the videos on youtube should workm!!
</span>
<div class=search>
@ -1147,10 +1147,10 @@ Privacy
<form action="/app">
<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;">
<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;">
<button class="btn btn-success" style="border-radius:1em;display:none;" type=submit>
<button class="btn btn-success" style="border-radius:1em" 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,62 +3471,7 @@ 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 = "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.ANDROID_APP_VERSION = "19.14.42"
this.ANDROID_VERSION = "13"
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";