Simple Telegram Bot for generating BalckPearl BBCode Templates

Overview

blackpearl-bbcode-bot

Simple Telegram Bot for generating BlackPearl BBCode Templates Written in Pyrogram

Features

- 🎉 IMDB Info fetching from files

- 🗃️ Both Movies and TV Supported

- ⚙️ Mediainfo,Tags,Links,Size,Languages

- 🛠️ TMDB Posters For Movies

- 📦 Everything Works on Mounted Gdrive, No local files needed

- 🤘 Fetches Every files in folder

To-do

  • Changing Entire Script to Make Advanced Stuffs,Takes time...

Installation

Requirements

Install the following dependencies in the listed order. Ensure shaka-packager is added to the environment path.

  1. [python], 3.6.0 or newer
  2. [rclone], rclone.exe and rclone.config in same path or needed to be added in environment path
  3. [mediainfo], mediainfo.exe same path or environment

Steps

  • Edit BOTCONFIG.py Add Your Credentials And Paths
  • Install Requirements : python -m pip install -r requirements.txt
  • Add Needed Files to Path : rclone.exe - mediainfo.exe - rclone.config
  • Mount Your Drive using rclone : rclone mount remote:foldername --vfs-cache-mode full s:' Note : Make Sure U mounted the remote:folder mentioned in config file, You can change s:` to your mounted drive name (not rclone name)
  • Run Bot python BPBBCODE.py
  • Open Telegram Send /movie Foldername or /tv foldername

Working

  • Suppose your full path is : TEAM DRIVE/BOT/MOVIES/DUNE.2021.mkv BOT is your remote folder (folder u configured remote or root folder) And Your Remote name is : Arthur And If you want to fetch bbcode -
    • Mount Arthur:BOT
    • And You need to write : Arthur:BOT/ in BOTCONFIG.py : REMOTE_NAME = "Arthur:BOT/"
    • And When You use command in bot Use : /movie MOVIES So it loops in S:/MOVIES/ for MKV/MP4/AVI files
    • If you Are Trying TVSHOW, You must add season folder in command folder That is : TEAM DRIVE/BOT/TVSHOWS/VIGIL.S01/Vigil.S01E01.mkv TEAM DRIVE/BOT/TVSHOWS/VIGIL.S01/Vigil.S01E02.mkv And You Request : /tv TVSHOWS so that it picks season folder link and size.It only picks First episode for mediainfo,Rest of the episodes got skipped for mediainfo.So Unless there is E01 its skips..

Issues

  • Working must be trickier for you,But if you have any issues just add, I will fix it..
You might also like...
veez music bot is a telegram music bot project, allow you to play music on voice chat group telegram.
veez music bot is a telegram music bot project, allow you to play music on voice chat group telegram.

🎶 Veez Music Bot Music bot for playing music on telegram voice chat group. Requirements 📝 FFmpeg NodeJS nodesource.com Python 3.7+ PyTgCalls 🧪 Get

An Telegram Bot By @AsmSafone To Stream Videos in Telegram Voice Chat. This is Also The Source Code of The Bot Which is Being Used In @SafoTheBot Group! ❤️

Telegram Video Player Bot (Beta) An Telegram Bot By @AsmSafone To Stream Videos in Telegram Voice Chat. Special Features Supports Live Streaming From

Telegram bot implementing Lex Arcana using python-telegram-bot library.
Telegram bot implementing Lex Arcana using python-telegram-bot library.

Lex Arcana Telegram Bot 🤖 Telegram bot implementing Lex Arcana using python-telegram-bot library. This bot was evaluated for the course "Computer Eng

A Telegram Filter Bot, Support Unlimited Filter. Also, The Bot can auto-filter telegram File | video

A Telegram Filter Bot, Support Unlimited Filter. Also, The Bot can auto-filter telegram File | video

A Powerful telegram giveawayz bot based on the python-telegram-bot API
A Powerful telegram giveawayz bot based on the python-telegram-bot API

GiveawayZ Bot A Powerful telegram giveawayz bot based on the python-telegram-bot API. Powered by Team Zyntax and Team DFX Developed by @Zycho-Dev A pr

Asad Alexa VC Bot Is A Telegram Bot Project That's Allow You To Play Audio And Video Music On Telegram Voice Chat Group.
Asad Alexa VC Bot Is A Telegram Bot Project That's Allow You To Play Audio And Video Music On Telegram Voice Chat Group.

Asad Alexa VC Bot Is A Telegram Bot Project That's Allow You To Play Audio And Video Music On Telegram Voice Chat Group.

Video Bot: an Advanced Telegram Bot that's allow you to play Video & Music on Telegram Group Video Chat
Video Bot: an Advanced Telegram Bot that's allow you to play Video & Music on Telegram Group Video Chat

Video Bot is an Advanced Telegram Bot that's allow you to play Video & Music on

Web-music-bot - A telegram bot which get a *site Url* and sends all songs contain in the Url to telegram

web music bot this is a telegram bot which get a site Url and sends all songs co

Telegram bot for logistic - Telegram bot for logistic

Демонстрационный телеграм-бот для нужд транспортной компании Цель проекта Реализ

Comments
  • Error

    Error

    tfidf_train=tfidf_vectorizer.fit_transform(x_train)


    ValueError Traceback (most recent call last) Input In [38], in <cell line: 1>() ----> 1 tfidf_train=tfidf_vectorizer.fit_transform(x_train)

    File ~\AppData\Local\Programs\Python\Python310\lib\site-packages\sklearn\feature_extraction\text.py:2077, in TfidfVectorizer.fit_transform(self, raw_documents, y) 2058 """Learn vocabulary and idf, return document-term matrix. 2059 2060 This is equivalent to fit followed by transform, but more efficiently (...) 2074 Tf-idf-weighted document-term matrix. 2075 """ 2076 self._check_params() -> 2077 X = super().fit_transform(raw_documents) 2078 self._tfidf.fit(X) 2079 # X is already a transformed view of raw_documents so 2080 # we set copy to False

    File ~\AppData\Local\Programs\Python\Python310\lib\site-packages\sklearn\feature_extraction\text.py:1330, in CountVectorizer.fit_transform(self, raw_documents, y) 1322 warnings.warn( 1323 "Upper case characters found in" 1324 " vocabulary while 'lowercase'" 1325 " is True. These entries will not" 1326 " be matched with any documents" 1327 ) 1328 break -> 1330 vocabulary, X = self.count_vocab(raw_documents, self.fixed_vocabulary) 1332 if self.binary: 1333 X.data.fill(1)

    File ~\AppData\Local\Programs\Python\Python310\lib\site-packages\sklearn\feature_extraction\text.py:1201, in CountVectorizer._count_vocab(self, raw_documents, fixed_vocab) 1199 for doc in raw_documents: 1200 feature_counter = {} -> 1201 for feature in analyze(doc): 1202 try: 1203 feature_idx = vocabulary[feature]

    File ~\AppData\Local\Programs\Python\Python310\lib\site-packages\sklearn\feature_extraction\text.py:108, in _analyze(doc, analyzer, tokenizer, ngrams, preprocessor, decoder, stop_words) 86 """Chain together an optional series of text processing steps to go from 87 a single document to ngrams, with or without tokenizing or preprocessing. 88 (...) 104 A sequence of tokens, possibly with pairs, triples, etc. 105 """ 107 if decoder is not None: --> 108 doc = decoder(doc) 109 if analyzer is not None: 110 doc = analyzer(doc)

    File ~\AppData\Local\Programs\Python\Python310\lib\site-packages\sklearn\feature_extraction\text.py:226, in _VectorizerMixin.decode(self, doc) 223 doc = doc.decode(self.encoding, self.decode_error) 225 if doc is np.nan: --> 226 raise ValueError( 227 "np.nan is an invalid document, expected byte or unicode string." 228 ) 230 return doc

    ValueError: np.nan is an invalid document, expected byte or unicode string.

    opened by Ahlycya 0
  • handler_worker:ERROR:Expecting value: line 1 column 1 (char 0)

    handler_worker:ERROR:Expecting value: line 1 column 1 (char 0)

    Traceback (most recent call last):
    File "\AppData\Local\Programs\Python\Python310\lib\site-packages\pyrogram\dispatcher.py", line 217, in handler_worker
    await handler.callback(self.client, *args)
    File "\blackpearl-bbcode-bot-main\BPBBCODE.py", line 389, in BPMV Language = getLANG(MOVIE_PATH)
    File "\blackpearl-bbcode-bot-main\BPBBCODE.py", line 232, in getLANG mediainfo = json.load(mediainfo_output.stdout)
    File "\AppData\Local\Programs\Python\Python310\lib\json_init_.py", line 293, in load
    return loads(fp.read(),
    File "\AppData\Local\Programs\Python\Python310\lib\json_init_.py", line 346, in loads
    return _default_decoder.decode(s)
    File "\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

    opened by awindsr 1
Owner
D. Luffy
King of pirates
D. Luffy
null 1 Feb 18, 2022
A simple telegram voting bot based on the python-telegram-bot api.

A simple telegram voting bot based on the python-telegram-bot api. *To make it more easy to use, I might make a C++ code in the future so you don't ha

null 3 Sep 13, 2021
A simple Telegram bot that analyses a given word, built with python-telegram-bot

Telegram Word Bot A simple Telegram bot that analyses a given word, built with python-telegram-bot. The bot is fairly useless - unless you often need

Chris N 2 Jul 14, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

Telegram VCVideoPlayBot An Telegram Bot By @ZauteKm To Stream Videos in Telegram Voice Chat. NOTE: Make sure you have started a VoiceChat in your Grou

Zaute 20 Oct 21, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

SUBIN 449 Dec 27, 2022
Telegram Bot for generating and decoding QR-codes

Telegram openqrgen_bot Telegram Bot that generates from user's messages and decodes QR-codes from photos. Also contains rickroll detection :) Just typ

null 2 Nov 14, 2021
This is telegram bot to generate string session for using user bots. You can see live bot in https://telegram.dog/string_session_Nsbot

TG String Session Generate Pyrogram String Session Using this bot. Demo Bot: Configs: API_HASH Get from Here. API_ID Get from Here. BOT_TOKEN Telegram

Anonymous 27 Oct 28, 2022
A telegram bot which can show you the status of telegram bot

BotStatus-Ts-Bot An open source telegram Bot Status bot For demo you can check here The status is updated in every 1 hour About Bot This is a Bot stat

Ts_Bots 8 Nov 17, 2022
Telegram PHub Bot using ARQ Api and Pyrogram. This Bot can Download and Send PHub HQ videos in Telegram using ARQ API.

Tg_PHub_Bot Telegram PHub Bot using ARQ Api and Pyrogram. This Bot can Download and Send PHub HQ videos in Telegram using ARQ API. OS Support All linu

TheProgrammerCat 13 Oct 21, 2022