Script Name:
YoutubeTitle
Version: 1.7
Author: BLaCkShaDoW
Script Date: 19/04/2018
Category: Not specified
Downloads: 975
File Name:
YoutubeTitle.tcl.zip
Short Description:
fetches and displays video information when a YouTube link is posted in channel. - displays title, date and rating of posted video links. - supports also HTTPS links. # requires: packages http - New in 1.7: Now shows and infos about duration/length and much more.
Extended Description File
##########################################################################################
# Youtube Title 1.7 (19/04/2018)
# - fetches and displays video information when a YouTube link is posted in channel.
# - displays title, date and rating of posted video links.
# - supports also HTTPS links.
#
# requires: packages http
#
# UPDATES/CHANGES:
# - (1.7) shows and infos about duration/length
# - (1.6) multiple output methods of showing the infos configurable via channel
# - (1.6) multi-language support configurable via channel
# - (1.6) supports eggdrop version less than 1.8.*
# - (1.6) options/settings are now case sensitive
#
# To activate .chanset #channel +ytitle | BlackTools : .set +ytitle
#
# To chose a different language .set ytlang <RO> / <EN> / <FR> / <ES> / <IT>
#
# To work put the http.tcl, from the archive, in your eggdrop config (if you don't have it instaled)
#
# BLaCkShaDoW ProductionS
# _ _ _ _ _ _ _ _ _ _ _ _ _ _
# / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \
# ( t | c | l | s | c | r | i | p | t | s | . | n | e | t )
# \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
# #TCL-HELP @ Undernet.org
#
##########################################################################################
package require http
###
# Bindings
# - using commands
###
bind pubm - * check:youtube
bind ctcp - ACTION check:youtube:me
###
# Channel flags
# - to activate the script: .set +ytitle or .chanset #channel +ytitle
#
# - to change script language:
# .set ytlang <ro/en/fr/es/it> or .chanset #channel ytlang <ro/en/fr/es/it>
#
# - to set script color
# .set ytcolor <0/1> ; 1 - colors ; 0 - no colors
#
###
setudef flag ytitle
setudef str ytlang
setudef str ytcolor
###
# Language setting
# - what language you want to receive the youTube data
# ( RO / EN / ES / FR / IT )
#
set ytitle(default_lang) "RO"
###
# Colors setting
# - what format you want to receive the youTube data
# (1) Enable or (0) disable colors
#
set ytitle(colors) "1"