Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable the download button and customize initializing logs in the Webtor Embedded SDK? #111

Open
Sachinthafdo opened this issue Dec 4, 2024 · 0 comments

Comments

@Sachinthafdo
Copy link

I’d like to disable the download button in the embedded player for compliance with my site’s requirements. And when the player initializes, it logs several messages to the console. Is there a way to customize these logs or turn them off altogether

window.webtor.push({
id: 'player',
width: '100%',
magnet: 'magnet:?xt=urn:btih:' + info_hash + '&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fopen.tracker.cl%3A1337%2Fannounce&tr=udp%3A%2F%2Fp4p.arenabg.com%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&tr=udp%3A%2F%2Ftracker.dler.org%3A6969%2Fannounce',
on: function (e) {
if (e.name == window.webtor.INITED) {
e.player.play();
document.getElementById('loading').style.display = 'none';
document.getElementById('player').style.display = 'block';
}
if (e.name == window.webtor.TORRENT_ERROR) {
console.log('Torrent error!');
}
},
poster: 'https://m.media-amazon.com/images/M/MV5BMzYyNjI0MzA3M15BMl5BanBnXkFtZTgwMDA3Nzc5NzE@._V1_.jpg',
imdbId: '23558280',
lang: 'en',
userLang: '',
});

Screenshot 2024-12-04 222247
Screenshot 2024-12-04 222001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant