GithubHelp home page GithubHelp logo

rayanfer32 / tgindexpro Goto Github PK

View Code? Open in Web Editor NEW
99.0 8.0 135.0 719 KB

File Stream Index of Telegram Chat / Channel / Group.

Home Page: https://rayanfer32.github.io/TgindexPro

License: GNU General Public License v3.0

Python 50.45% HTML 49.28% JavaScript 0.26%
playlist-generator telegram index tgindexpro tgindex static permalinks streaming video playlist

tgindexpro's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tgindexpro's Issues

i Can't Generate Session String

python3 app/generate_session_string.py

Traceback (most recent call last):
File "app/generate_session_string.py", line 12, in
api_id = os.environ['API_ID']#int(input("Enter your API_ID: "))
File "/usr/lib/python3.8/os.py", line 675, in getitem
raise KeyError(key) from None
KeyError: 'API_ID'

Suspend

Heorko Suspend Account
in 10 second after Deploy

Repl.it deploy error.

i have already add 4 env value, here is the error infomation.

image
image

Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/runner/TgindexPro-1/app/main.py", line 19, in
Indexer().run()
File "/home/runner/TgindexPro-1/app/main.py", line 46, in run
self.loop.run_until_complete(self.startup())
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/runner/TgindexPro-1/app/main.py", line 32, in startup
await setup_routes(self.server, Views(self.tg_client))
File "/home/runner/TgindexPro-1/app/routes.py", line 84, in setup_routes
alias_id = generate_alias_id(chat)
File "/home/runner/TgindexPro-1/app/routes.py", line 15, in generate_alias_id
title = chat.title
AttributeError: 'User' object has no attribute 'title'

Error On Replit

 python3 run.py
ERROR:telethon.network.mtprotosender:Request caused struct.error: 'I' format requires 0 <= number <= 4294967295: GetUsersRequest(id=[InputUser(user_id=1001508344724, access_hash=0)])
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/runner/TgindexPro/app/main.py", line 19, in
Indexer().run()
File "/home/runner/TgindexPro/app/main.py", line 46, in run
self.loop.run_until_complete(self.startup())
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/runner/TgindexPro/app/main.py", line 32, in startup
await setup_routes(self.server, Views(self.tg_client))
File "/home/runner/TgindexPro/app/routes.py", line 83, in setup_routes
chat = await client.get_entity(chat_id)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/client/users.py", line 287, in get_entity
inputs.append(await self.get_input_entity(x))
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/client/users.py", line 440, in get_input_entity
users = await self(functions.users.GetUsersRequest([
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/client/users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/client/users.py", line 58, in _call
future = sender.send(request, ordered=ordered)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/network/mtprotosender.py", line 176, in send
state = RequestState(request)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/network/requeststate.py", line 17, in init
self.data = bytes(request)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/tl/tlobject.py", line 194, in bytes
return self._bytes()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/tl/functions/users.py", line 72, in _bytes
b'\x15\xc4\xb5\x1c',struct.pack('<i', len(self.id)),b''.join(x._bytes() for x in self.id),
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/tl/functions/users.py", line 72, in
b'\x15\xc4\xb5\x1c',struct.pack('<i', len(self.id)),b''.join(x._bytes() for x in self.id),
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/tl/types/init.py", line 11928, in _bytes
struct.pack('<I', self.user_id)

Sort the files in ascending order

Is it possible to sort the files in ascending order. (From 1st message to the last)
This will be really helpful for channels with TV shows.

No working

I cannot run the project in repl.it,I hope to get help

Not showing files anymore

We can no longer see thr files from Telegram. It just showing a blank background. Can you fix it please ?

Please Help to Run

Hi

When I Get Code in Telegram and Insert to app
Show Blow Error
Please Help For Deployment.
TGIndex Problem

M3U links/files from OTG not working.

M3U links/files work fine with the default index but when generated with the OTG indexing, M3U links/files doesn't play with VLC. Here are the VLC error logs ~

-- logger module started --
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
main: playlist is empty
-- logger module stopped --
-- logger module started --
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
access error: HTTP 410 error
http error: local stream 1 error: Cancellation (0x8)
-- logger module stopped --

I can't generate session string

Every time I try to generate session string it gave me the error

Traceback (most recent call last):
File "app/generate_session_string.py", line 12, in
api_id = os.environ['API_ID']#int(input("Enter your API_ID: "))
File "/usr/lib/python3.8/os.py", line 675, in getitem
raise KeyError(key) from None
KeyError: 'API_ID'

But all the keys are not blank

getting error

was working fine 2-3 days ago , not even showing any error on console log
image

Buffering problem

Hi everyone, I have another issue.
I state that I have a Gigabit connection, so I think that the problem is not attributable to the connection.
I don't understand why there is buffering when I play my videos, I also notice that the buffer appears every time at the same point.
I hope someone can help me.

API ?

Does the API work?

When I try http://mydomain.com:8080/qMqVTrDyMoGCaX/api/ it does not work, using Postman with GET. I choose the channel, and append an /api to the url. Correct?

error

hi , i am getting this error code. any idea to reslove ?

File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/runner/TgindexPro/app/main.py", line 19, in
Indexer().run()
File "/home/runner/TgindexPro/app/main.py", line 25, in init
self.tg_client = Client(session_string, api_id, api_hash)
File "/home/runner/TgindexPro/app/telegram.py", line 11, in init
super().init(StringSession(session_string), *args, **kwargs)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/telethon/sessions/string.py", line 37, in init
self._dc_id, ip, self._port, key = struct.unpack(
struct.error: unpack requires a buffer of 275 bytes
exit status 1

TV Addon

I am impressed and thank you for your work.

Would it be possible that you could provide a TV addon for Kodi.tv?

Best regards

Error: AttributeError: 'User' object has no attribute 'title'

I try to start the application locally.
I filled out: "API_ID", "API_HASH", "SESSION_String".

And "include_chats" = [1234567890] with my personal chat-id number. I used a bot called "RawDataBot" to fetch my chat-id.

It won't start and instead gives this error:

user@machine:~/TgindexPro$ python3 -m app
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/user/TgindexPro/app/__main__.py", line 19, in <module>
    Indexer().run()
  File "/home/user/TgindexPro/app/main.py", line 46, in run
    self.loop.run_until_complete(self.startup())
  File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/home/user/TgindexPro/app/main.py", line 32, in startup
    await setup_routes(self.server, Views(self.tg_client))
  File "/home/user/TgindexPro/app/routes.py", line 84, in setup_routes
    alias_id = generate_alias_id(chat)
  File "/home/user/TgindexPro/app/routes.py", line 15, in generate_alias_id
    title = chat.title
AttributeError: 'User' object has no attribute 'title'

Access with login

Hello could be added login with access? I never tried it in Python and it will be awesome to restrict the access so Repl.it don't target the accounts, thanks!

video player

videos with dual audio or subtitle can't be played in online player..
so please do something about it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.