Code Monkey home page Code Monkey logo

podcast-it's Introduction

Podcast It

Table of Contents

  1. Overview
  2. Features
  3. Installation
  4. Usage

Overview

"Podcast It" is an Android app that allows users to convert YouTube video URLs into podcasts. Simply input a YouTube URL, and the app will play only the audio track, allowing you to listen to it like a podcast.

This project is inspired by this tutorial.

Features

  • Convert YouTube URLs to audio tracks
  • Play audio in the background
  • Control audio playback via lock screen controls

Installation

Clone the repository:

git clone https://github.com/displaynone/podcast-it.git
cd podcast-it

Install the dependencies:

npm install
# or
yarn install

Run the app:

npm run android

Usage

  • Open the app
  • Input a YouTube URL into the input field
  • Press the "Load video" button
  • Enjoy your podcast

Versión 2.0.0

En esta versión, tuve que cambiar la forma en que se recuperaban los datos de los videos. Desde 2024, he tenido problemas con las URLs, y no sé por qué, pero si el proyecto estaba expulsado (ejected), las firmas de las URLs eran incorrectas. El mismo código funcionaba bien con Expo, pero al expulsar el proyecto, fallaba. Y necesitaba estar expulsado para poder usar TrackPlayer.

Después de varias semanas intentando solucionar el problema, decidí implementar un servidor que proporcione la información necesaria. Utilicé el siguiente script para ello:

const ytdl = require("ytdl-core");
const express = require("express");
const app = express();
const port = 3001;

app.use(express.json());

app.post("/", (req, res) => {
    console.log(req.body);
    const videoId = ytdl.getURLVideoID(req.body.url);
    console.log(videoId);
    ytdl.getInfo(videoId).then((info) => {
        let format = ytdl.chooseFormat(info.formats, { quality: "highestaudio" });
        res.json(info);
    });
});

app.listen(port, () => {
    console.log(`Servidor escuchando en el puerto ${port}`);
});

Solo necesitas configurar el servidor en la variable de entorno llamada YOUTUBE_EXTERNAL_API.

podcast-it's People

Contributors

displaynone avatar github-actions[bot] avatar

Stargazers

Mark Villacampa avatar

Watchers

 avatar

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.