Random files I've been collecting & programming
javier-lopez / learn Goto Github PK
View Code? Open in Web Editor NEWrandom files I've been collecting & programming
random files I've been collecting & programming
Random files I've been collecting & programming
The formatting used to browse into the dlna directories uses symbols such as '64$2' and it's not interactive, those reasons make it quite impractical.
You can update your amazing script to new 3.15 Kernel? Thanks!
I'm pretty sure most HTTP servers support just returning the MD5sum of a file, so you can just request that instead of downloading the whole file and MD5summing it locally (and wasting bandwidth/time).
I might make a PR of this tomorrow if I have time
really good idea, btw! saw this on HN
at least on my install
this is easily resolved
http://stackoverflow.com/a/8437870/541038
resolved with pull request I submitted #13
Hi Javier,
Thank you for the simple-dlna-browser script. I have been able to use it
on my Puppy Linux PCs to access my DLNA host (which is another Puppy
Linux PC running a version of minidlna). Simple-dlna-browser is very
lightweight compared to VLC, Kodi etc etc! Just what I was looking for.
May I ask you a question please? Mostly the playback is working well for
me but I notice a symptom that I do not fully understand. It may be
something to do with the minidlna server rather than simple-dlna-browser
client.
First let me explain how I use the browser script:
for example:
If I want s-d-b to play only one song I can enter the exact song title
eg: winner takes it all
(This will play the Abba song "The winner takes it all")
If I want s-d-b to play a selection of songs I can enter a less unique
string eg: winner
(This will play the same abba song above but also the song "Winner" by
Pet Shop Boys)
If I want s-d-b to play a whole bunch of songs I can enter the character
"w" and get both of the songs above, as well as all other songs that
have a "w" in the title.
This works really well for me - ok I am not really using the browser
functionality at all but it does let me access my DLNA server from my
client PCs in a very lightweight way - with none of the "hook up" delay
that I get using VLC.
So here is my problem:
Consider the song "Wind Of Change" by Scorpions. On my server I have
renamed this as "winds.mp3" just for convenience.
For some reason it does not play when I type "winds" - one of a small
number of songs that does not play even though I can see it available on
the server and can see it available within the sql database created by
the minidlna server.
As far as I can tell the song is not playing because it has been
renamed. The file name is visible in the database - however s-d-b
obviously does not find that song as a valid entry in the database. When
I export the database as a .csv file I can definitely see the song in
there but in the title column it is shown as "Wind Of Change" (not
"winds") so I assume that there must be some ID tag carried within the
song that is causing minidlna to make it available with a different name
to what I wanted to give it.
I have attached a gnumeric file showing the output of that csv file. In
order to test this problem I made a series of folders (4 deep) and put
some "filedepth.mp3" test files in each level so that I could see what
s-d-b was able to find. You can see in row 32 that my file name on disk
(column A) matches the name in the database (column D) for all other mp3
files except the "winds" file.
After seeing that I realised that I was able to get s-d-b to play that
particular song as long as I used the file's "internal name" of "Wind Of
Change" rather than the title that I had given it.
(sorry about the long winded explanation)
Are you able to tell me if this is something to do with the way that the
minidlna server prepares the database - or is it a limitation of s-d-b
please? If it is a limitation of s-d-b is there any easy way to get it
to search on the song title as given by the user - and ignoring any ID
tags or online database/album info?
Sometimes I like to rename my songs to prevent confusion and it would be
nice to know I was searching on the correct filename. Obviously if I was
properly using the browser function of s-d-b I would be able to see the
actual filename as found in the database - but I struggled to understand
the formatting of the file and folder names (such as '64$2' etc). I
eventually worked out how to navigate but I was too slow and decided to
let s-d-b do the character match method - much quicker!
Many thanks for any information you can offer.
Regards
Ian Williamson
Auckland
New Zealand.
I didn't know where to ask a question like this; I'm looking at simple-dlna-browser and I don't understand a piece of syntax, on line 246 what does the following snipped do?
"${@:-0}"
I know it's indexing something in the array of passed arguments to the function, but is -0 the number of elements or something? Is it all the arguments together?
After find how I can navigate , -v option is crucial to know the folder ID [1] , I'd like to know what subtitles the minidlns is offering for the movie ?
I think my minidlana is offering 2 different subtitles but kodi ATM just read the first one, to debug if the problem is with minidlna or if is with kodi , I'd like that simple-dlna-browser shows the subtitles
Thanks
./simple-dlna-browser -v -l
./simple-dlna-browser -v -l 64
./simple-dlna-browser -v -l 64\$9
./simple-dlna-browser -v -l 64\$9\$2C
./simple-dlna-browser -v -l 64\$9\$2C\$1
Just searching your example hash, it looks like Fedora will be a very useful mirror: See http://pkgs.fedoraproject.org/lookaside/pkgs/libssh2/libssh2-1.3.0.tar.gz/6425331899ccf1015f1ed79448cb4709/ - the hash and filename are in the URL
You could also parse slackbuilds: https://github.com/diogoleal/slackbuilds/blob/master/libssh2/libssh2.info
kernel-ck-ubuntu breaks at line 315:
[+] running make-kpkg ...
$ fakeroot make-kpkg --initrd kernel_image kernel_headers modules_image
getopt: unknown option '--initrd'
fakeroot, create a fake root environment.
usage: fakeroot [-l|--lib fakerootlib] [-f|--faked fakedbin]
[-i file] [-s file] [-u|--unknown-is-real]
[-b|--fd-base fd] [-h|--help] [-v|--version]
[--] [command]
it works by changing it to
fakeroot "make-kpkg --initrd kernel_image kernel_headers modules_image"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.