NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums General General Discussion v
« Previous 1 … 25 26 27 28 29 … 159 Next »
remove "leading spaces" from epg xml?

 
  • 0 Vote(s) - 0 Average
remove "leading spaces" from epg xml?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#11
2011-11-05, 02:06 PM
Vulcan would be closer, regular expressions (on which that command is based) are extremely "logical" once you understand them. They do seem to be everywhere in linux scripts.

Live long and prosper.

Martin
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#12
2011-12-03, 12:10 AM
Hi Martin,

I need some more advice please, on trimming text from an epg. Unfotunately, TVxB only has room for 100 substitutions and I'm finding I have to add and amend my title right and left clip on an almost daily basis. It's so sensitive to what is being clipped I am missing shows.

What is happening is that the English characters in the Chinese Text are left, so I often get [], and (Smile and things like that. So I had the bright idea to try and remove these using some more of your vulcan language, only I need to understand how to translate Vulcan to plain English, so I can add to those as I go.

So what I am after is pretty simple really, I want to call a line in the batch to which I can add a comma delimited list of things like [],(Smile,Smile,(:, etc etc.

Can I ask your help as how I go about this ?

Cheers

k.

Code:
[B]titlelclip[/B]=(I),(II),(III),(IV),(V),(VI),(VII),(VIII),(IX),(X),(XI),(XII),(XIII),(XIV),(XV),(XVI),(XVII),(XVIII),(XIX),(XX),(XXXIX),(XXXXI),Movie of the Month:,Movie of the Month :,Science Minutes,Summer Fun :,Blockbuster :,Blockbuste:,Blockbuster:,Anniversary Special :,International Attractions:,International Attractions :,Jubilee Special:,BLOCKBUSTER:,Pearl Mini Saga:,Summer Fun:,ONLINE,Mega Movie:,Friday Hall of Fame:,Friday Hall of Fame :,Monday Showtime :,Monday Showtime:,Monday Showcase :,Monday Showcase:,Holiday Feature:,Orchestra Presents,The CEP Connection,Show : ,Late Late Show:,Late Late Show :,And the Award Goes To:,And the Oscar® Goes to:,I.N.K.,(BMW 特約:),(BMW 特約:),(BMW 特約: ),(),Bloomberg財,NBC 世,賽 - ,60億 .,CCTV News -,[直播]  YONEX-SUNRISE,[直播] YONEX-SUNRISE,[普]  The Open University of Hong Kong Special:,[粵]  The Open University of Hong Kong Special:,牒  Oriental,(幸福醫藥特約:),[上][普],正向管教 [粵],前途全力創 [粵],屬於我們的電視廣播,港作為國際貿易中心的地位,[第二部分],大賽 (XIV)(A|X ARMANI EXCHANGE PRESENTS: ),蝙蝠俠 - 俠影之謎,俠影之謎(Subway™ Restaurants Presents: ),(東方表行50週年呈獻,叱吒全球 - 李小龍,星球大戰前傳III黑帝君臨(太子珠寶鐘錶特約,星球大戰前傳III黑帝君臨 [續](太子珠寶鐘錶特約,商業精英(寶達特約:)  The,港生活.港享受"聖誕特輯 (置地公司呈獻:), ] ,] ,
[B]titlercliplast[/B]=and  商業精英(寶達特約:),and  寶達特約,and 商業精英,and 滙豐冠軍賽前奏 HSBC Champions,and PS港生活‧港享受 Dolce Vita p.s.,and 商業精英(寶達特約:) The CEO Connection,and 特備節目 Special Programme,(reenex neo-collagen specialist presents: ),and 商業精英(寶達特約:),and  商業精英(寶達特約:),and 商業精英(寶達特約:) The CEO Connection,and 商業精英(寶達特約: ) The CEO
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#13
2011-12-03, 05:39 AM
This Vulcan dictionary is explained if you search something called "regular expression" often shortened to regex

For now maybe just strip the brackets altogether.

"s/[\x00-\x1F\x7F-\xFF]()//g;s/> */>/g"

Eventually this will get too complicated with too many dependencies for one line. Probably best to consider yourself on your own now.

Martin
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#14
2011-12-04, 04:40 AM
Cheers Martin. Yes. Complicated!
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to remove devices from device list kralj3gs 6 3,000 2023-08-26, 08:38 PM
Last Post: sub
  What does NPVR remove when naming recordings p37307 0 1,753 2016-12-24, 10:55 AM
Last Post: p37307
  Colour spaces, picture quality - Nvidia cards Pob 4 3,732 2009-11-09, 10:47 PM
Last Post: Pob

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode