NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

import glob
import sys
FileList = glob.glob('/media/lubuntu/inn-disk/video/*')
# Get the absolute file names
HeadHtml = '<!DOCTYPE html>n<html>n<head>n <meta charset="utf-8" />n <link rel="stylesheet" type="text/css" href="css/dop.css" />n <title>Audio list</title>n </head>n<body>n<p>'
# Head of the document
HeadHtmlVideo = '<!DOCTYPE html>n<html>n <head>n <meta charset="utf-8" />n <title>Clip</title>n </head>n <body>'
# Head of video documents
Credits = '<p>This file is made by Python 2.7, file - <b>list.py</b> in <i>/media/lubuntu/inn-disk</i> folder.</p>'
Back = '<p><a href=/media/lubuntu/inn-disk/ListMp3.html>Back</a></p>'
EndHtml = 'n</body>n</html>'
# End of the document
i = 1
Middle=[]
for file in FileList:
path = file.split('/')
name = path[-1]
type = str(name[-3]+name[-2]+name[-1])
# To understand the type - video or audio
if type == 'mp4':
Middle += str(name) + '</p>n <audio class="music" controls>n <source src="' + file + '" type="audio/mpeg" />n </audio>n <a href="video/html/' + name +'.html">Clip</a> </p>n <p>'
MiddleVideo = 'n <video class="video" controls>n <source src="' + file + '" />nn <objectn type="application/x-shockwave-flash"n width="400"n height="320"n >n <param name="movie"nvalue="video/flowplayer-3.2.5.swf" />n <param name="flashvars" value='config={"clip":"video/snowman.mp4"}' />n <p>n <a href="video/snowman.mp4">MP4</a>n </p>n </object>n </video>nn <script>n var v = document.getElementById("movie");n v.onclick = function () {n if (v.paused) {n v.play();n } else {n v.pause();n }n };n </script>n </body>n</html>'
f = open('video/html/'+name+'.html', 'w')
f.write(HeadHtmlVideo+MiddleVideo+Credits+Back+EndHtml)
f.close()
i +=1
sys.stdout.write('+')
else:
Middle += str(name) + '</p>n <audio class="music" controls>n <source src="' + file + '" type="audio/mpeg" />n </audio>n </p>n <p>'
# List of the music files
Number = str(i)
MiddleHtml = ''
for i in Middle:
MiddleHtml +=i
# Get the strokes from list
f = open('ListMp3.html', 'w')
f.write(HeadHtml+str(MiddleHtml)+Credits+EndHtml)
f.close()
print('create new mp3 list...')
print(Number +' pages were created! All the job is done, master!')
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.