Coder Social home page Coder Social logo

hhaven's Introduction

Hi there, I'm JokelBaf!


  • ๐Ÿ‘ค Pronouns: He/Him
  • ๐Ÿ”ญ Iโ€™m currently working on my own Discord bot named Ari!
  • ๐ŸŒฑ Iโ€™m just learning programming and it's one of my first projects
  • ๐ŸŽฎ Play Genshin/HSR, Minecraft, GTA V, Osu!
  • ๐Ÿ“บ๐ŸŽถ Enjoy watching anime and listening to music
  • My Discord is JokelBaf#5002

ย 

GitHub Profile Trophy:

trophy

GitHub Stats:

JokelBaf's GitHub stats

JokelBaf Stats JokelBaf Stats JokelBaf Summary

Visitor counter

JokelBaf

hhaven's People

Contributors

dependabot[bot] avatar jokelbaf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hhaven's Issues

Failed to load m3u8 file,reason is dictionary update sequence element #0 has length 1; 2 is required

`from hhaven import Client
import asyncio
import m3u8_To_MP4
from m3u8_To_MP4 import multithread_download

async def main():
    client = await Client().build()

    home = await client.home()
    hentai = await home.last_episodes[0].full()

    print("Downloading episode:", hentai.name)
    output_folder = "./downloads"  # Change this to your desired output folder
    m3u8_To_MP4.multithread_download(hentai.content, output_folder)

if __name__ == "__main__":
    asyncio.run(main())
`

Failed to load m3u8 file,reason is dictionary update sequence element #0 has length 1; 2 is required

not sure what the issue is please help

so im trying to create discord bot from the api you posted but it doesnt seem to be working

          so im trying to create discord bot from the api you posted but it doesnt seem to be working
import discord
from discord.ext import commands
from hhaven import Client
import m3u8_To_MP4

intents = discord.Intents.default()
intents.typing = False
intents.presences = False
bot = commands.Bot(command_prefix='!', intents=intents)

client = Client()

@bot.event
async def on_ready():
    print(f'Logged in as {bot.user.name}')

@bot.command()
async def newest(ctx):
    try:
        await ctx.send("Fetching newest hentai video...")
        
        results = await client.search("hentai", sort_by="created_at", order="desc", limit=1)
        hentai = await results[0].full()
        episode = await hentai.episodes[0].full()
        
        m3u8_To_MP4.multithread_download(episode.content)
        
        await ctx.send(f"Downloaded the newest video: {hentai.title} - {episode.name}")
    except Exception as e:
        traceback.print_exc()
        await ctx.send(f"An error occurred: {e}")

bot.run('')

Originally posted by @BlackReaper33 in #8 (comment)

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.