Properly format m3u playlist - xbmc

I am using XBMC to watch IPTV, simple created playlist like this
#EXTM3U
#EXTINF:-1,Pink Action
http://on108.setplex.net/fastv_2....ca.m3u8
#EXTINF:-1,Pink Action 2
http://on108.setplex.net/fastv_2....ca.m3u8
#EXTINF:0,KISS RADIO
http://213.246.53.21:9515/
#EXTINF:0,KRAJISKI RADIO GRMEC
http://95.211.166.127:8234/
The problem is here because on menu in XBMC i have menu TV but all streams, RADIO and TV are together, is ti possible to seperate them in one m3u. With that properly format than i think in XBMC i will get second menu RADIO?
Question is how to properly format m3u list, with RADIO and TV, and also how to add logo of the channel

Here is properly formated m3u
#EXTINF:-1,tvg-id="Pink Action" tvg-name="Pink Action" tvg-logo="Pink Action.png" group-title="TV", Pink Action
tvg-id= name of the channel EPG
tvg-logo= name of the logo (XBMC/Logo/PinkAction.png) folder
group-title= groups
and finaly name of the channel

Related

Check/Uncheck with Close Tags Button for Filter Product JavaScript Journal 3 Opencart

I want to add the feature filter with close tags button for filter in journal theme Opencart3 like image below. Do you have any solutions for it?

a href name issue in D8 Editor Advanced link

I have recently installed D8 Editor Advanced link and set(content and format)
<a href hreflang data-entity-type data-entity-uuid id rel target title class="">
And when i enter a link through editor
I got options like
URL
Title
And i enter url then name but i got output like
<p>url</p> (from ck editor source)
output like
I expect title instead of url as a tag name.please help me
I'm not sure it's an issue with Editor Advanced Link.
The title here is not the visible texte but the title HTML attribute (as explain by the field description).
If I understand properly your question, you want to achieve something like <a href="url>title</a>. Using CKeditor, when you want to add a link, you should before write the visible text then applying a link wrapping it.
Here is an example GIF on a project also using Editor Advanced Link:

Where do I set fields that can be edited in Sitecore editor options?

Where in sitecore do I configure what fields are displayed when I click this button? (Currently, it lists 3 of the 7 fields that are on the template, I'd like to add another to be editable).
Screenshot
It is one of Edit Frame buttons. When you open your control markup, you see something like this:
<sc:EditFrame ID="editFrame" runat="server" Buttons="/sitecore/content/Applications/WebEdit/Edit Frame Buttons/Default">
...
</sc:EditFrame>
It differs for MVC, but is similar. You need to get Buttons attribute value.
When you open /sitecore/content/Applications/WebEdit/Edit Frame Buttons/Default path in core database you see list of children. It is your buttons. For your case it should be only one button: Edit Item. This item has Fields field where using pipe as delimiter is list of fields that are available for editing.

Show preview of image in form

I want to achieve the following in a django form, for a models.ImageField:
do not show the standard <input type="file"> button ("choose file" button)
show a preview of the current image, for already populated models
for empty (new) models, show a custom button
clicking on the image preview or the custom button will open a file dialog to select the image from the user's file system
selecting a new image replaces the custom button or the old image preview with the preview of the new image
This seems to me like a normal workflow to select images in a form, but I do not seem to find any fully working solution. All I can find involves hacking around several parts:
styling the label and hiding the standard "choose file" button: https://www.youtube.com/watch?v=4p2gTDZKS9Y
use a widget instead of the standard for forms.FileField.
I have tried to use:
class ImagePreviewWidget(Widget):
def render(self, name, value, attrs=None):
return mark_safe('<img src="/media/%s" width="100px"/>' % escape(value))
For the widget, and I am using this in the form like this:
class DesignCampaignForm(ModelForm):
brand_logo = FileField(widget=ImagePreviewWidget)
This is properly showing the preview of the existing image, but I am unable to click on it to select another file, and even if I was that would not update the preview.
Is there an already available solution for this simple use case?
I haven't been able to find a complete solution, so I have done the following:
use a widget to render a modified ClearableFileInput, rendering an image and an <input> element
style the <input> in the element with CSS, to hide it
make sure that clicking in the image triggers the hidden <input> element, wrapping the <img> in a <label> and using the for attribute
add some javascript to replace the image preview whenever the selection in the <input> element changes
whenever the selection is cleared, show the original preview
A gist can be found here.
In my final solution (not yet in the gist), I have added a button for when the image is not yet selected.
edit: Gist only works for Django before version 1.11.x.
class ClearableFileInput has since been gutted and changed

Facebook Like button - comment box with breif description and image

On my website when the user selects the facebook like button they have the option to enter comments. This popup window to enter comments only contains the users avatar and place to enter comments. How can i include my pic and a brief description of the site directly below the comment???
At first I thought it was from the HTML title attribute or meta property="og:title" ... but populating these have no affect
I have another site that contains both pic and a desc below the comment but the pic seems to be grabed at random -but always the same- from the site and the short desc I thought from the -title- attribute but its not - I changed the -title- and it still shows the same desc, its like its cached???
Any ideas how to control or populate a brief description and image within the comment section of a like button???